[Thread Prev][Thread Next][Index]

Re: [ferret_users] Generating nice PS file, problem with margins



Dear Szymon,

> *gs -q -dNOPAUSE -dBATCH -sDEVICE=pnmraw -r150x150 -dTextAlphaBits=4
> -dGraphicsAlphaBits=4 -sOutputFile=- polycstline.ps | pnmflip -r90 |
> convert +antialias - polycstline.png*
> 
> I changed line thickness and now I am quite happy about this wthat I have.
> 
> Mainly, I have this bluish lines on the plot and no idea of how I can get
> rid off it.

Those thin lines are due to antialiasing.  In the above, you first
convert the PostScript file to a raster image using gs and finally
convert it to another raster format, PNG.  I'm not familiar with
details of gs, but it must be performing the conversion with
antialising. . . . Hmm, but it seems GraphicsAlphaBits and
TextAlphaBits are the antialising operations here.  What happens if
you don't use those options?

(You switch off antialiasing for your "convert" command, but it's too
 late.)

Better still, the "convert" command can manipulate your image in a
lot of ways and you may not need to use "gs" in the first place:

 convert -density 150 -rotate 90 +antialias polycstline.ps polycstline.png

or something along the lines.

Regards,
Ryo


[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement