Possible bug IM 6.9.9.49 vs 7.0.7.37 converting CMYKA PDF to CMYKA TIFF

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.
Post Reply
User avatar
fmw42
Posts: 24156
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Possible bug IM 6.9.9.49 vs 7.0.7.37 converting CMYKA PDF to CMYKA TIFF

Post by fmw42 » 2018-05-30T15:37:57-07:00

Input (CMYK PDF):

http://www.fmwconcepts.com/misc_tests/p ... s-test.pdf

This works fine in IM 7

Code: Select all

magick -depth 8 -colorspace sRGB trans-test.pdf -alpha extract mask.png
magick \( -depth 8 -colorspace CMYK trans-test.pdf \) \
mask.png -alpha off -compose CopyOpacity -composite \
trans-test_mask7.tif
http://www.fmwconcepts.com/misc_tests/p ... _mask7.tif


But this fails in IM 6

Code: Select all

convert -depth 8 -colorspace sRGB trans-test.pdf -alpha extract mask.png
convert \( -depth 8 -colorspace CMYK trans-test.pdf \) \
mask.png -alpha off -compose CopyOpacity -composite \
trans-test_mask6.tif
http://www.fmwconcepts.com/misc_tests/p ... _mask6.tif

Same version of Ghostscript: 9.23

Mac OSX Sierra

User avatar
magick
Site Admin
Posts: 10870
Joined: 2003-05-31T11:32:55-07:00

Re: Possible bug IM 6.9.9.49 vs 7.0.7.37 converting CMYKA PDF to CMYKA TIFF

Post by magick » 2018-05-30T17:16:33-07:00

Per the porting guide, alpha is reversed for IMv6 and IMv7-- so negate the mask for iMv6:

Code: Select all

convert \( -depth 8 -colorspace CMYK trans-test.pdf \) \
  \( mask.png -negate \) -alpha off -compose CopyOpacity -composite \
  trans-test_mask6.tif

User avatar
fmw42
Posts: 24156
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Possible bug IM 6.9.9.49 vs 7.0.7.37 converting CMYKA PDF to CMYKA TIFF

Post by fmw42 » 2018-05-30T18:30:29-07:00

Thanks. I forgot about that. Sorry, for the false alarm.

Post Reply