[magick-users] Background issue converting .eps to .png
Anthony Thyssen
anthony at griffith.edu.au
Thu Oct 23 18:46:26 PDT 2008
zentara on wrote...
| On Thu, 23 Oct 2008 10:25:50 +1000
| Anthony Thyssen <anthony at griffith.edu.au> wrote:
|
| >I would really suggets you read in images before resizing them!
| >that is do the operations in order.
| >
| >As such the first line becomes...
| >
| > convert -density 160x160 lightcurve.eps -resize 99% \
| > -quality 100% -compress Lossles lightcurve1.pdf
| >
| >However removing the -resize from the above as you were previously doing
| >maybe causing the 'delegate/coder handling' aspect of IM, see
| > http://www.imagemagick.org/Usage/files/#delegates
| >to completely bypass the rasterization of the image.
| >
| >You may be able get the equivelent result WITHOUT resizing by using
| >-taint.
| >
| >Try this instead...
| >
| > convert -density 160x160 lightcurve.eps -taint \
| > -quality 100% -compress Lossles lightcurve1.pdf
| >
|
| Yes, taint seems to work (I don't know why :-) )
|
| The real questions seem to be:
| 1. Why does it need an intermediate convert to pdf to get clean fonts and a white background?
| 2. Why does a direct convert to png or jpg result in a black image?
|
| IM is very powerful but can get complicated at times. :-)
|
Without the -taint IM will call external programs (ghostscript) to
just directly convert EPS -> PDF, without actually reading (and
rasterizing) the image in memory.
See the IM examples delegates link above.
That means you are actually going
EPS -> raster -> PDF -> raster -> PNG
Which is VERY strange way of doing things.
Anthony Thyssen ( System Programmer ) <A.Thyssen at griffith.edu.au>
-----------------------------------------------------------------------------
Voice of the Resistance...
I just wanted to mention for those who have asked, that
absolutely nothing whatsoever happened today in sector 83x9x12
I repeat nothing happened, please remain calm. -- Babylon 5
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/
More information about the Magick-users
mailing list