Page 1 of 1
Colorspace being lost on convert meaning washed out images
Posted: 2013-06-26T06:43:35-07:00
by jeffski10
I'm struggling to resize some image PNG's to retain the color profile or convert it to something that keeps the appearance.
Running the images through using :
convert 61R49EGLD_large_trans.png -resize 600x900 output.png
the resultant image is dull. I can see the color profile gets changes to sRGB from the AdobeRGB1998 one so I then tried converting setting the profile with -profile AdobeRGB1998.icc but this seems also to be lost.
The resultant image is washed out and loses the shine so I can see it must be profile related. The original is here:
http://media.topshop.com/wcsstore/TopSh ... _trans.png
Any one have ideas as to what command I can run that will convert it cleanly or get the profile to change retaining the gloss of the image.
Jeff
Re: Colorspace being lost on convert meaning washed out imag
Posted: 2013-06-26T07:11:17-07:00
by snibgo
If you don't mention +profile or -profile in your command, IM should leave the profile alone. In 6.8.6-0 on Windows7,
Code: Select all
convert 61R49EGLD_large_trans.png -resize 600x900 output.png
doesn't change the profile.
Software often ignores profiles and assumes images are sRGB (resulting in a washed-out appearance because AdobeRGB has a larger gamut), so it is often a good idea to change the image to sRGB:
Code: Select all
convert 61R49EGLD_large_trans.png -profile sRGB.icc -resize 600x900 output.png
... where sRGB.icc is in your directory, or you need to put the full path.
Re: Colorspace being lost on convert meaning washed out imag
Posted: 2013-06-26T09:40:20-07:00
by jeffski10
So, I have tried again without specifying a profile. Just doing the straight resize the embeded Adobe RGB profile gets lost - I can see from an identify -verbose.
Then running a convert specifying the profile and the same appears. I'm got version 6.8.3-5 running - I assume there is nothing changed in a newer one?
Re: Colorspace being lost on convert meaning washed out imag
Posted: 2013-06-26T10:20:25-07:00
by snibgo
Running your command in 6.8.3-0, the profile is removed. This is (I suppose) a bug.
In 6.8.4-0, 6.8.5-0 and 6.8.6-0, the profile is not removed.
Re: Colorspace being lost on convert meaning washed out imag
Posted: 2013-06-26T10:23:11-07:00
by fmw42
Everything looks fine for me with your command in IM 6.8.6.2 Q16 Mac OSX and the Adobe profile can be found in the output meta data.
Viewed with Mac Preview and Safari.
Re: Colorspace being lost on convert meaning washed out imag
Posted: 2013-06-26T10:28:26-07:00
by glennrp
Running 6.8.6-1, the ICC profile is preserved, verified by running "convert output.png output.icc" and examining output.icc with iccdump.
However, the resized one is somewhat different in appearance as you noted, when viewed with an app that doesn't do anything with profiles.
Just wondering: do the spikes represent ex-spouses?
I put the original file and converted file at
http://www.simplesystems.org/users/glennrp/Shiny_rings/
Firefox 22 and 25 (nightly) both display the two images visually identical.
Chrome just shows a blank page.
Re: Colorspace being lost on convert meaning washed out imag
Posted: 2013-06-26T11:45:57-07:00
by jeffski10
Thanks for this. So it does seem to be a version issue. Pulled down a newer copy and it converts OK so now just need to check the other scripts I run to see if any output is affected. Its pretty much identical now other than slightly softer so I will play with the sharpen to see if I can recover it a bit.
The only thing I notice is the transparent setting appears to be lost when viewing in some viewers but loading into Photoshop I can see it still there - so maybe there is something slightly corrupted on the original.
Re: Colorspace being lost on convert meaning washed out imag
Posted: 2013-06-26T12:45:47-07:00
by glennrp
jeffski10 wrote:
The only thing I notice is the transparent setting appears to be lost when viewing in some viewers but loading into Photoshop I can see it still there - so maybe there is something slightly corrupted on the original.
Firefox shows the transparency. So does an old fork of "display" from ImageMagick 5.5.7 that I use.
Re: Colorspace being lost on convert meaning washed out imag
Posted: 2013-06-27T04:54:57-07:00
by glennrp
Chrome actually does show the two images, but much larger so you have to scroll to see anything but
the background. The scaled one looks much duller than the original.
Re: Colorspace being lost on convert meaning washed out imag
Posted: 2013-07-08T13:14:51-07:00
by areohbee
Using 6.8.6-3, icc profile getting dropped, 6.7.3 is aok.
on win7/64 - mogrifying jpegs.