[RESOLVED] Background color not applied in conversion from EPS to JPEG
Posted: 2015-02-16T07:37:50-07:00
Hi all,
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):
This will result in a black background around the ball : http://kriks.free.fr/IM/ball/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):
http://kriks.free.fr/IM/ball/ballonByPng.jpg
Am I wrong with my use of Imagemagick or is there a bug somewhere ?
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 ?