Running ghostscript for windows 8.64, ImageMagick 6.4.9 Q16
I have a number of scanners to support that throw their images into pdf files
as streams. I'd like to convert them into tiff images. The resolution of the
pdf 'envelope' is 72x72, appropriate for display on screen. The resolution of
the scan can be anything from that to 1200x1200 (or greater). However, when I
run convert or when I use Image::Magick to write the image out as a
multi-page tiff, the resolution of each image is now 72x72. Not good. This
also fails for conversion to png format.
I can manually run gsview and display/print the pdf at the 200x200 resolution
with no problems.
When I run
@Attribs=qw(width height x-resolution y-resolution);
$image=Image::Magick->new();
$image->read('test.pdf');
and loop through all the pages using this:
@attribvals=$image->[$i]->Get(@Attribs);
@attribvals shows that the resolution is 72x72, and width and height compute
out to scan size for each page.
I can hard code these values to a better resolution, but more appropriately, I
should be getting the resolution from the stream itself. Since Get() only
returns the 'envelope' size, how would a person get this information?
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users