zentara on  wrote...
| On Tue, 21 Oct 2008 12:43:05 -0400
| Michael Stroh <[EMAIL PROTECTED]> wrote:
| 
| >I'm using simple commands like
| >
| >convert lightcurve.eps lightcurve.png
| >
| >Are there any additional things I can try to get the .png file to look  
| >the way I want it to?
| >
| >Cheers,
| >Michael Stroh
| Yeah I saw the lossy looking output too, with IM-6.4.3, and the png had
| a black frame. 
| 
| This 2 step convert, first to pdf, then to png seems to give clear output.
| 
| convert -quality 100% -compress Lossless lightcurve.eps lightcurve1.pdf
| convert -quality 100% -compress Lossless lightcurve1.pdf lightcurve1.png
| 
| 
| There is some centering issue that needs to be worked out, but I'll leave
| that for you. :-)  I seems the conversion to pdf rotates it into portrait 
mode,
| without adjusting the dimensions. 
| 
| 
| Using -trim
| 
| This may not be the best way, but it makes a nice png.
| The resize 99% seems to auto convert it to landscape.
| 
| ######################
| convert -resize 99% -density 160x160 -quality 100% -compress Lossless 
lightcurve.eps lightcurve1.pdf
| 
| convert -quality 100% -compress Lossless lightcurve1.pdf lightcurve1.png
| 
| convert lightcurve1.png -trim lightcurve2.png
| ######################
| 
| I'm sure there is some code condensation needed, but it works. :-)  
| zentara
| 

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


  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
           "   ``   '   `   "   `'    ""    (Random Quotes)
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to