problem with cmyk profiles
Posted: 2010-08-02T19:27:00-07:00
I have very little experience with profiles. So perhaps the solution is obvious to others and I would appreciate any help.
I have a cmyk PSD file (with background transparency) that probably has cmyk profiles in it. IM identify -verbose shows (one layer/frame) with several profiles (but I am not sure which one(s) are relevant to this issue.
Profiles:
Profile-8bim: 16122 bytes
Profile-exif: 302 bytes
Profile-iptc: 7 bytes
unknown[2,0]:
Profile-xmp: 6453 bytes
When processing with IM, I believe that IM copies the profiles from the first image in the sequence to the output. This causes some problems when trying to overlay the transparent PSD file onto a checkerboard pattern. So far, I have not been able to solve this within IM alone. For example:
Here is the original PSD file:
http://www.fmwconcepts.com/misc_tests/p ... nsback.psd
If I do this:
width=300
height=300
convert \( -size ${width}x${height} tile:ps_checks.gif \) test4_cmyk_transback.psd[0] \
-background white -flatten test4_cmyk_transback_tile1.jpg

The colors in the two images are incorrect, probably because the profiles are lost, but the checkerboard is correct.
However, if I do this:
convert test4_cmyk_transback.psd[0] -tile ps_checks.gif -draw "color 0,0 reset" \
test4_cmyk_transback.psd[0] -flatten test4_cmyk_transback_tile2.jpg

Then the two images have correct coloration, but the checkerboard is wrong, probably because it was grayscale and inherited the cmyk profiles from the psd file.
Anyone know how I can get the correct combination of preserving the coloration (profiles) of the two images and keep the checkerboard correct also? Perhaps preparing a different checkerboard image for cmyk use?
Any solution within IM only?
Any solution with some other external program to copy the profiles from the input to the output after IM has processed it?
Thanks
Fred
I have a cmyk PSD file (with background transparency) that probably has cmyk profiles in it. IM identify -verbose shows (one layer/frame) with several profiles (but I am not sure which one(s) are relevant to this issue.
Profiles:
Profile-8bim: 16122 bytes
Profile-exif: 302 bytes
Profile-iptc: 7 bytes
unknown[2,0]:
Profile-xmp: 6453 bytes
When processing with IM, I believe that IM copies the profiles from the first image in the sequence to the output. This causes some problems when trying to overlay the transparent PSD file onto a checkerboard pattern. So far, I have not been able to solve this within IM alone. For example:
Here is the original PSD file:
http://www.fmwconcepts.com/misc_tests/p ... nsback.psd
If I do this:
width=300
height=300
convert \( -size ${width}x${height} tile:ps_checks.gif \) test4_cmyk_transback.psd[0] \
-background white -flatten test4_cmyk_transback_tile1.jpg

The colors in the two images are incorrect, probably because the profiles are lost, but the checkerboard is correct.
However, if I do this:
convert test4_cmyk_transback.psd[0] -tile ps_checks.gif -draw "color 0,0 reset" \
test4_cmyk_transback.psd[0] -flatten test4_cmyk_transback_tile2.jpg

Then the two images have correct coloration, but the checkerboard is wrong, probably because it was grayscale and inherited the cmyk profiles from the psd file.
Anyone know how I can get the correct combination of preserving the coloration (profiles) of the two images and keep the checkerboard correct also? Perhaps preparing a different checkerboard image for cmyk use?
Any solution within IM only?
Any solution with some other external program to copy the profiles from the input to the output after IM has processed it?
Thanks
Fred