Advertisement Jump to content
Sign in to follow this  
spraff

full-page postscript photos

This topic is 3943 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, all. I have a collection of jpeg images and I want to convert them into postscript files, which I can do with the linux convert command-line tool, except they should each fill one a4 page. Ideally, they'd stretch with no margins on the best-fit side, and preserve the aspect ratio, introducing margins rather than cropping, but a stretch-to-fit solution is acceptable if that's the only easy way. At the moment when I do "convert foo.jpg foo.ps" the image is too big for the page and if I do "convert -page A4 foo.ps bar.ps" then nothing appears to change (although the postscript is different). I'm ready to hear esoteric solutions, running a script in OpenOffice, say, or a bizzare HTML/CSS trick, or whatever, would do fine. Thanks for reading.

Share this post


Link to post
Share on other sites
Advertisement
And no, psresize doesn't help. It seems to be rescaling the content at the same rate as the page, so there's no visible change.

Share this post


Link to post
Share on other sites
Use the -density option to convert to set the DPI level. You'll need some clever way of determining the appropriate DPI level, though.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!