given a EPS with a named clip path, I want to convert it into a JPEG with the clip area colored (from background-color).
I use IM 6.9.0-3 and GS 9.15
Here is the EPS : http://kriks.free.fr/IM/ball/ballon_foot.eps
Here is my command-line (I tried various placements of the background parameter):
Code: Select all
convert -verbose -units PixelsPerInch -density 100 'ballon_foot.eps[0]' +repage -auto-orient -resize 500x500 -colorspace 'sRGB' -alpha transparent -clip-path 'det' -alpha opaque -background red -flatten 'JPEG:ballon.jpg'
Outputing as PNG then piping into convert to get a JPEG with the background-color works (but it would reduce the case to RGB images):
Code: Select all
convert -verbose -units PixelsPerInch -density 100 'ballon_foot.eps[0]' +repage -auto-orient -resize 500x500 -colorspace 'sRGB' -alpha transparent -clip-path 'det' -alpha opaque PNG32:- | convert PNG32:- -background red -flatten 'JPEG:ballonByPng.jpg'
Am I wrong with my use of Imagemagick or is there a bug somewhere ?