Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Modern web (and other) software assumes that colour images are encoded as (non-linear) sRGB rather than (linear) RGB, unless told otherwise. Even if told otherwise by gamma flag etc in PNG files, much software ignores this and treats it as sRGB.
For this reason, I think using RGB for web applications is unwise. If the user specifies colours in RGB, these can easily be converted to sRGB, or vice versa, eg:
snibgo wrote:Modern web (and other) software assumes that colour images are encoded as (non-linear) sRGB rather than (linear) RGB, unless told otherwise. Even if told otherwise by gamma flag etc in PNG files, much software ignores this and treats it as sRGB.
For this reason, I think using RGB for web applications is unwise. If the user specifies colours in RGB, these can easily be converted to sRGB, or vice versa, eg:
mackermedia wrote:I tried the 3 examples that you posted at the bottom, and they all look the same. I did notice an error output while running the command:
Am I missing something obvious? Is it possible the files I found are bad? Could you share the ones you are using?
What version of IM and what platform and what viewer. I used the IM display (show:) in unix on my Mac and they can clearly be seen to differ. But it takes a good viewer to properly handle profiles.
I do not know why you got an error unless you do not have the exact same profiles and you will of course need to put them on your system in a different location that I did and reference your path to them
Can you please give me an example of a specific display command that you used to view these? I'm using Preview in OSX as the Viewer. I'm also using the OSX Color Utility to determine sRGB vs Generic RGB values.
Also, I wasn't able to get the command to work to convert rgb values and srgb values (convert xc:rgb(239,152,50) -set colorspace RGB -colorspace sRGB -d
epth 8 txt:). It's failing on the last part of the command which ends in `txt:`
Or to compare them in a flickering display, just do
animate -delay 50 orange_srgb.tif orange_rgb.tif
P.S. If you open them both up in Preview in the same window and use the arrow keys to alternate between the two images you can see there is a slight difference in darkness of the color. The linear RGB will be darker. It seems to be a bit more obvious using animate.