[Resolved] possible bug clip path IM 7.0.5.5 Q16

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: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

[Resolved] possible bug clip path IM 7.0.5.5 Q16

Post by fmw42 »

I can apply a clip path to the following image in IM 6.9.8.4 Q16 fine. But when I use IM 7.0.5.5 Q16, it seems the clip path is inverted and masks the inside rather than the outside.

Input:
http://www.fmwconcepts.com/misc_tests/c ... OV_EPS.eps

IM 6.9.8.3 (works fine):

Code: Select all

convert -density 150 -colorspace sRGB 218755504_HOV_EPS.eps -alpha transparent -clip -alpha opaque -strip 218755504_HOV_EPS_im6.png
Image

IM 7.0.5.5 (fails):

Code: Select all

magick -density 150 -colorspace sRGB 218755504_HOV_EPS.eps -alpha transparent -clip -alpha opaque -strip 218755504_HOV_EPS_im7a.png
Image


So I thought I could capture the alpha channel and negate it and re-apply to the png. But this direct method fails also with a totally transparent result.

Code: Select all

magick -density 150 -colorspace sRGB 218755504_HOV_EPS.eps -alpha transparent -clip -alpha opaque -strip \
\( +clone -alpha extract -negate \) -alpha off -compose copy_opacity -composite 218755504_HOV_EPS_im7b.png
Image


However, oddly, if I do the same first part and save to miff: and pipe to a new second command line, it works fine. Why is that?

Code: Select all

magick -density 150 -colorspace sRGB 218755504_HOV_EPS.eps -alpha transparent -clip -alpha opaque -strip miff:- |\
magick - \( +clone -alpha extract -negate \) -alpha off -compose copy_opacity -composite 218755504_HOV_EPS_im7c.png
Image
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: possible bug clip path IM 7.0.5.5 Q16

Post by magick »

Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ http://www.imagemagick.org/download/beta/ by sometime tomorrow.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: possible bug clip path IM 7.0.5.5 Q16

Post by fmw42 »

Thanks. This now works correctly in IM 7.0.5.6 released today.
Post Reply