Page 1 of 1

Converting PostScript files to JPG/PNG/etc in Linux

Posted: 2007-12-17T17:03:44-07:00
by hoopz
I am using a program to create images and the only useful format it can output is postscript, so I am converting them to a web-readable format using ImageMagick's convert function. Sometimes these images come out too small when I do this, so I need to enlarge them. I can accomplish this by using the resize or geometry properties but this takes awhile, especially when I increase the density so its not blurry. The external program gives you the option of enlarging the image before it outputs the postscript file by allowing you to change the width and height of the postscript file's page size. Default is like 20x27cm, so if I want to double the size I just change it to 40x54cm and then convert.

All of this was working fine in Windows and now I need to implement this same process in Linux. However, when ImageMagick converts a postscript file that is 40x54 cm, the resulting jpg has been doubled (as expected) but it has been cropped to the original 20x27cm. Windows didn't do this - it gave me a 40x54cm jpeg like I expected.

I'm not sure if there is a package I am missing or not. I did install the gs interpreter but it didn't change anything.

Thanks

Re: Converting PostScript files to JPG/PNG/etc in Linux

Posted: 2007-12-17T17:35:40-07:00
by hoopz
got it

-page widthxheight{+-}x{+-} y{%}{!}{}{}

size and location of an image canvas.

Use this option to specify the dimensions of the PostScript page in dots per inch or a TEXT page in pixels. The choices for a PostScript page are:

not sure why I need to specify this in Linux and not in windows, but its easy enough for me to code it in, so whatever