Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
The following code is producing an image which, when opened in photoshop, presents me with a warning "The embedded ICC profile cannot be used because the ICC profile is invalid. Ignoring the profile." How to properly embed the profile in this case?
What platform? If unix, then you need to enclose the #fff in quotes. The following works for me on my Mac OSX snowleopard using IM 6.9.1.8 Q16. When I open it in PS (CS -- very old), it does not complain about the profile.
It is possible that PS is more sensitive in current versions. You are creating a bilevel (b/w) grayscale image. I am not sure if applying USWebCoatedSWOP.icc to a bilevel image is the issue?
Create the input image first, then use -units rather than -set units afterwards
You are creating an image with RGB channels and assigning a CMYK profile. Software will try to read your RGB channels as if they were CMYK. I'm not surprised Photoshop doesn't like it.
A more conventional command would first assign an sRGB profile, then convert to USWebCoatedSWOP.