On Tue, 21 Oct 2008 16:09:06 -0400
zentara <[EMAIL PROTECTED]> 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. 
>
>zentara

Hi, a few more minutes of hacking, and I found 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'm not really a human, but I play one on earth.
http://zentara.net/Remember_How_Lucky_You_Are.html 
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to