Page 1 of 1
can we print images in DPI and proper size using imagemagick
Posted: 2007-12-28T02:32:36-07:00
by Ravinderjit S.Sidhu
Dear friends,
can we print images in DPI and proper size using imagemagick?
like BMP/JPG in 300 dpi
I know IMDisplay.exe of imagemagick that can print but this does not appears to print in proper DPI or proper size of image (CM/INCH).
If you know how to print images properly using command line or using imagemagick any other way, please suggest.
Re: can we print images in DPI and proper size using imagemagick
Posted: 2007-12-28T02:35:07-07:00
by Bonzo
Try something like this:
Setting the size in resize to print an image 6"x4"
The sizes used in ImageMagick are in pixels; to get an image into a size for printing e.g. 6"x4" you need to do something like this:
<?php
exec("convert input.jpg -resize 600x400 -density 100x100 output.jpg");
?>
The default pixel value in ImageMagick is DPI ( dots per inch ) so that will not need setting.
The -density sets the pixels per inch; you can have a different value for the height and width if required
The values in -resize are set by multiplying the required size by the DPI:
6 x 100 = 600 and 4 x 100 = 400
If you were working on 300 dpi it would be 6 x 300 = 1800 and 4 x 300 = 1200
can we take printout in DPI and proper size using imagemagic
Posted: 2007-12-28T02:46:32-07:00
by Ravinderjit S.Sidhu
actually i have images generated by convert.exe command line.
these images are in 300 dpi and proper size of 4"x5".
I am looking for how to print these images on laser/inkjet printer in proper printmedia qality using imagemagick.
Re: can we take printout in DPI and proper size using imagemagic
Posted: 2008-01-03T06:32:58-07:00
by Ravinderjit S.Sidhu
Ravinderjit S.Sidhu wrote:actually i have images generated by convert.exe command line.
these images are in 300 dpi and proper size of 4"x5".
I am looking for how to print these images on laser/inkjet printer in proper printmedia qality using imagemagick.
I found that when we set printer-driver dpi same as the dpi of image (like printer dpi is 600 and image is also of 600 dpi) then it prints in proper size. (using imagemagick imdisplay.exe)
Re: can we print images in DPI and proper size using imagemagick
Posted: 2008-01-03T18:08:34-07:00
by anthony
Command line example?
Re: can we print images in DPI and proper size using imagemagick
Posted: 2008-01-07T23:59:27-07:00
by Ravinderjit S.Sidhu
I tried using IMDisplay.exe to print image on printer...This is GUI based...no command line i used for this.
But I am looking for comand line for quality dpi printing in real size to laser printer.