Change Print size

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
textwizard99
Posts: 2
Joined: 2013-01-07T08:42:00-07:00
Authentication code: 6789

Change Print size

Post by textwizard99 »

Hi there,

I have a lot of screenshots of different sizes that need to have a max width of 15cm when printed. Currently they are too wide.

If I use "resize" the resolution stays the same (96dpi) which means worse quality but I need the quality to stay the same.

I could use "density" but as the sources have different sizes the density would need to be diffneret, too.

Is there a way to do a batch job with image magick that changes the width of the print size from all images with a print size width >15cm and automatically adapts the resolution?

Thanks!
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Change Print size

Post by snibgo »

What platform are you printing from? On Windows, I have printer drivers that let me print anything at any size I want, irrespective of the file pixels or pixels per inch. If I don't tell the driver otherwise, it tries to fill an A4 sheet.

If your printer is 600 dpi and you want a maximum width of 6 inches, you can easily tell IM to make images no wider then 3600 pixels, at 600 dpi. But you may still need to tell the printer driver not to expand the images to fill the page.
snibgo's IM pages: im.snibgo.com
textwizard99
Posts: 2
Joined: 2013-01-07T08:42:00-07:00
Authentication code: 6789

Re: Change Print size

Post by textwizard99 »

Thanks for your answer but that's not helping me :(
I want the general print size of the image to have a max width of 15cm, no matter what printer / platform etc is used.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Change Print size

Post by snibgo »

Image files don't contain data to prevent them from being printed above a given size.

EDIT: I suppose you could output to a page-oriented format such as PDF, which printer drivers generally respect, leaving the appropriate margins.
snibgo's IM pages: im.snibgo.com
Post Reply