Page 1 of 1

[Resolved] possible bug clip path IM 7.0.5.5 Q16

Posted: 2017-05-12T15:13:17-07:00
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

Re: possible bug clip path IM 7.0.5.5 Q16

Posted: 2017-05-12T17:17:38-07:00
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.

Re: possible bug clip path IM 7.0.5.5 Q16

Posted: 2017-05-13T12:19:17-07:00
by fmw42
Thanks. This now works correctly in IM 7.0.5.6 released today.