When I say "I do something", it doesn't mean everyone else should.
Yes, I'm aware of that. I'm not convinced by the earthspace demonstration. I agree the non-converted image is too dark, but the converted image looks too light (to me). But what matters is what looks right to you (or your client), and these matters are rather subjective. See the
Digital Image Processing forum for discussions.
And don't forget that what looks best also depends on the quality of the monitor, printer, whatever.
joew wrote:This removes the profile and stores in sRGB?
Yes.
joew wrote:I thought having a profile attached would be the better (thus preferable) method?
Why? Profiles are normally used to specify the colour characteristics of the input device, or to prepare for an output device. I don't want to retain the input profile during processing -- it's of no importance. An output profile is only important after the processing is done.
And don't forget that an attached profile means either (a) assigned metadata that has no effect on processing or (b) pixel values have been converted to this other colorspace. If (b), then processing will work differently on the same image that has been converted to different colorspaces. I would find this confusing.
joew wrote:Every FAQ and HOWTO I could find on the net states that manipulations should be done in linear color space.
They are often blindly repeated from each other. But if it works for them (or you), that's fine.
joew wrote:Maybe IM does internal conversions if it finds that the image is not yet in linear colorspace, so that manipulations in sRGB work fine because of that invisible conversion?
Current versions of IM do not (thankfully) do any colorspace conversions without being told to do so. As far as I know.
joew wrote:Can I be confident that all three of the following commands: ... will give me exact the same image?
In current versions, yes. However, note that "-colorspace something" converts an image already in memory; if there is no image (because this is the first operation) it should do nothing. In your examples, "-colorspace sRGB" at the end will also do nothing because the image is already sRGB.
joew wrote:I think the distinction between "declaring" (this modifies only the metadata) and actually converting from one colorspace to an other is a very important distinction.
Agreed.
joew wrote:But I can't find anything in the IM documentation that would explain this distinction.
Perhaps not, explicitly. Colour concepts are described quite well in
http://www.imagemagick.org/Usage/color_basics/,
http://www.imagemagick.org/script/color-management.php, etc, but beware that these are somewhat out of date, and greyscale now processes exactly like colour.
joew wrote:As stated at the beginning of the thread, I have seen huge differences.
In that case, use whatever works for you.
joew wrote:Yeah. But you use the -gamma option, which brings us back to the very first post in this thread: ...
I agree the warning is weird, but you can ignore it. I think gamma is stored in PNG files for historical reasons, as a hint to display software that the image should undergo further gamma correction before being displayed. Most software ignores the setting. If it troubles you, you can eliminate the warning by "-set colorspace sRGB" immediately before the output filename. This resets the gamma setting as appropriate for sRGB, 0.454545.