Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
The above command line converts to RGB, resizes and fills anything outside the clipping path with white. Everything works great with around 90% of the images, but some results in a blank white image. No errors are thrown or anything.
Command line order is important. Its possible your image already has a color profile so you need to strip it before you apply your Coated and sRGB profiles:
We have a patch in ImageMagick 6.4.0-10 Beta (available sometime tomorrow) to fix the problem you reported. With 6.4.0-10 we get:
convert CMYK_bad.tif -strip -profile EuropeISOCoatedFOGRA27.icc -profile sRGB.icm +clip-path #1 -fill black -draw "color 0,0 reset" -resize 216x400 -quality 85 -density 72x72 output_bad.jpg
convert: CMYK_bad.tif: unknown field with tag 34152 (0x8568) encountered. `TIFFReadDirectory'.
convert: CMYK_bad.tif: unknown field with tag 40961 (0xa001) encountered. `TIFFReadCustomDirectory'.
convert: CMYK_bad.tif: unknown field with tag 34152 (0x8568) encountered. `TIFFReadDirectory'.
convert: no clip path defined `CMYK_bad.tif'
What does the warning/error
'convert: no clip path defined `CMYK_bad.tif'' mean?
The tiff does indeed hold an clipping path. I have tested the clipping path in Photoshop, The gimp and had it validated on http://validator.w3.org. It is valid SVG 1.1
I think i know the answer: It is the -strip command that removes the clipping path? Is the any way to remove all profiles but still keep the clipping path? (other than explicit remove each profile type, fx +profile icc)
I have no development enviroment and cannot build from source. When will this patch be available in the windows binaries? I have tried ImageMagick-6.4.1-0-Q16-windows-dll.exe with no luck.
The problem is specific to Windows. The conversion works fine under Linux / Mac OS X. The problem may be in the LCMS delegate library. It will take some time to investigate.