Code: Select all
identify svg.svg
which is wrong whereas using the MSVG (or RSVG renderer).
Code: Select all
identify MSVG:svg.svg
The real issue comes when one tries to extract the clip path and use it to clip an image with Inkscape 0.92. For example from https://imagemagick.org/Usage/masking/#clip-path
Code: Select all
convert -quiet 852067A.tif[0] -alpha transparent -clip -alpha opaque -strip out.tiff
A better method is as follows (using IM 6.9.10.14)
Code: Select all
identify -quiet -format "%[8BIM:1999,2998:#1]" 852067A.tif[0] |\
convert -quiet 852067A.tif[0] +repage \
-profile /Users/fred/images/profiles/USWebCoatedSWOP.icc \
-profile /Users/fred/images/profiles/sRGB.icc \
\( -density 96 - -negate -blur 0x1 -level 50x100% \) \
-alpha off -compose copy_opacity -composite \
-define tiff:alpha=associated \
out.tif
Unfortunately, the above code does not work with the anti-aliasing for me on my Mac OSX Sierra with IM 7 and produces a totally transparent result. But if I remove the -blur 0x1 -level 50x100% it does work properly.