Hmm I’m not certain I understand your question, so I’ll state what I know: the stats displayed are width, height, depth, channels. 32-bit float is the default data type. If you define a new image with:
gmic 800,800,1,3
that will imply 800 * 800 * 1 * 3 * 4 bytes (32bit = 4 bytes per pixel per channel). For a three channel 2D image that means each vector valued pixel occupies 3 * 4 = 12 bytes (you can have arbitrary number of channels). The data is stored in memory as complete channels, rather than all bytes of a pixel in turn. For an rgb image it’s in memory as all red pixels, then all green pixels…
Whether other data types can be selected, I think so but @David_Tschumperle can elaborate (it used to require extra compilation steps).
…that’s what I was looking for, thanks. The docs for gmic say that -print will “Output information on selected images” so I mistsakenly interpreted the “size =” line to be telling me about the data in the file. It sounds like it is instead telling me about the internal processing pipeline, i.e. the number of floats the image represents once it is read into gmic.
Does gmic have a “show me details about the file” function? Or maybe mediainfo is the more appropriate utility for that?
I think other tools like exiftool/dcraw/file etc. are more suited to extracting image file info (gmic displays very little about the file itself, only the resulting data).