[Resolved] possible bug clip path IM 7.0.5.5 Q16
Posted: 2017-05-12T15:13:17-07:00
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):

IM 7.0.5.5 (fails):

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.

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?

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

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

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

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
