00readme.html (this file)|
This directory contains useful scripts to convert between two image formats.
The script names beginning with 'crop' (e.g. croppdf2png, i.e. "convert pdf
to png with cropping") need some work in modifying dimension and offsets
(-crop nnnnxnnnn+yy+yy), in order to fit the user's preferences: follow
the comments within the scripts and try some modification with the help of
an image viewer (I use GEEQIE in Linux or GQVIEW in Windows).
The scripts can be usefully used within a Bongo command file (.bon) to produce the standard output bongo.ps in different formats (I prefer pdf and png, but following the same scheme, it is straightforward to write a script to convert ps or pdf to gif,jpg,tiff ...)
You can view here a list of all available crop-convert schemas and some comment about them.
The Bongo code concerning image conversion might be:
. . . xcol 1 ycol 2 ltype 1 18 connect % text 5 21 sreloc 120 340 label spettri/austria/bohm/t/tmed.bon !writes the Bongo file name at the % bottom-left corner id fz !this line is the "normal" end of a Bongo command file % but in this case the next line are added % 4.10.2014: use QUIT to write bongo.ps without exit Bongo % and then: %>>1 convert ps to pdf by ps2pdf (ps2pdf bongo.ps name.pdf) %>>2 convert, with crop, pdf to png by croppdf2png (croppdf2png name) quit !NOTE: the same as END but beeing yet in Bongo. % Now bongo.ps has been written and can be converted dos ps2pdf bongo.ps tm-aug.pdf ! convert to pdf %bongo2pdf tm-aug !(without extension. Better than the above command) dos croppdf2png tm-aug !convert, w/cropping, to png or %dos cropbpdf2png tm-aug !if your plot is tpe "b" or 120x520,400x600 px . .