ImageMagick only reads first page of pdf/ps doc. (6.5.5-7)

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
cdaniel

ImageMagick only reads first page of pdf/ps doc. (6.5.5-7)

Post by cdaniel »

Using the macports version of ImageMagick (6.5.5-7 2009-09-08 Q8 OpenMP) on Mac OSX 10.6 (Snow Leopard)

After upgrading to snow leopard and updating ImageMagic, I noticed that my app that generates preview of pdf uploads was only processing the first page. Threw together a little ruby and perl script to show the number of pages returned by Read, both seem to only return the first page. The same scripts on a MacOS 10.5 or on a Linux system with ImageMagic 6.5.4-0 correctly shows the number of pages in the pdf or postscript document. I've tested this with multiple pdf and ps documents, same results every time. Pls. advice.

-- Perl script --

#!/usr/local/bin/perl
use Image::Magick;

my($image, $x);
$image = Image::Magick->new;
$image->Read($ARGV[0]);
for ($x = 0; $image->[$x]; $x++){
print "Found page $x \n";
}

-- Ruby Script --

require "rubygems"
require 'RMagick'

ARGV.each do |arg|
images = Magick::Image.read(arg)
puts images.size
end
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: ImageMagick only reads first page of pdf/ps doc. (6.5.5-7)

Post by magick »

The problem you reported is fixed in the ImageMagick 6.5.5-8 release. Thanks.
cdaniel

Re: ImageMagick only reads first page of pdf/ps doc. (6.5.5-7)

Post by cdaniel »

Thanks for the quick response.
Post Reply