Only first page of PDF is converted by IM under Windows

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
User avatar
whugemann
Posts: 289
Joined: 2011-03-28T07:11:31-07:00
Authentication code: 8675308
Location: Münster, Germany 52°N,7.6°E

Only first page of PDF is converted by IM under Windows

Post by whugemann »

As of ImageMagick 6.8.1-10 2013-01-10 Q16 the command "convert test.pdf test.jpg" only converts the first page of the PDF. This is the same with the current version.

As I have always some older install files in backhand, I have just installed "ImageMagick-6.8.0-1-Q16-windows-dll" and the original beahviour -- all pages are converted in a series of JPEG files -- was re-established.

There seems to be something wrong with the PDF handling in current Windows versions of IM.
Wolfgang Hugemann
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Only first page of PDF is converted by IM under Windows

Post by snibgo »

Confirmed, on Windows 7. Example of 6.8.1-10, then 6.7.9-6:

Code: Select all

D:\web\im>
D:\web\im>"%IMG681%convert" -verbose j.pdf jj.jpg
[ghostscript library] Files (x86)/gs/gs8.71/bin/gswin32c.exe" -q -dQUIET -dSAFER
 -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0
-dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x
72"  "-sOutputFile=C:/Users/Alan/AppData/Local/Temp/magick-65846WncEfUCoCqY" "-f
C:/Users/Alan/AppData/Local/Temp/magick-65846grdc-GAosc1" "-fC:/Users/Alan/AppDa
ta/Local/Temp/magick-6584MAXu22DFxyDM"C:/Users/Alan/AppData/Local/Temp/magick-65
846WncEfUCoCqY PNG 595x842 595x842+0+0 8-bit sRGB 1.688MB 0.031u 0:00.035
j.pdf PDF 595x842 595x842+0+0 16-bit sRGB 1.688MB 0.000u 0:00.018
j.pdf=>jj.jpg PDF 595x842 595x842+0+0 16-bit sRGB 109KB 0.031u 0:00.048

D:\web\im>"%IMG%convert" -verbose j.pdf jj2.jpg
[ghostscript library] Files (x86)/gs/gs8.71/bin/gswin32c.exe" -q -dQUIET -dSAFER
 -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0
-dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x
72"  "-sOutputFile=C:/Users/Alan/AppData/Local/Temp/magick--dFl398u-%08d" "-fC:/
Users/Alan/AppData/Local/Temp/magick-pMnih5lU" "-fC:/Users/Alan/AppData/Local/Te
mp/magick-oylcdo-3"C:/Users/Alan/AppData/Local/Temp/magick--dFl398u-00000001 PNG
 595x842 595x842+0+0 8-bit sRGB 328KB 0.047u 0:00.034
C:/Users/Alan/AppData/Local/Temp/magick--dFl398u-00000002 PNG 595x842 595x842+0+
0 8-bit sRGB 411KB 0.031u 0:00.038
C:/Users/Alan/AppData/Local/Temp/magick--dFl398u-00000003 PNG 595x842 595x842+0+
0 8-bit sRGB 558KB 0.047u 0:00.032
C:/Users/Alan/AppData/Local/Temp/magick--dFl398u-00000004 PNG 595x842 595x842+0+
0 8-bit sRGB 391KB 0.031u 0:00.037
j.pdf[0] PDF 595x842 595x842+0+0 16-bit sRGB 328KB 0.109u 0:00.182
j.pdf[1] PDF 595x842 595x842+0+0 16-bit sRGB 328KB 0.078u 0:00.133
j.pdf[2] PDF 595x842 595x842+0+0 16-bit sRGB 328KB 0.031u 0:00.090
j.pdf[3] PDF 595x842 595x842+0+0 16-bit sRGB 328KB 0.000u 0:00.045
j.pdf=>jj2-0.jpg[0] PDF 595x842 595x842+0+0 16-bit sRGB 98.3KB 0.031u 0:00.079
j.pdf=>jj2-1.jpg[1] PDF 595x842 595x842+0+0 16-bit sRGB 147KB 0.078u 0:00.125
j.pdf=>jj2-2.jpg[2] PDF 595x842 595x842+0+0 16-bit sRGB 229KB 0.140u 0:00.177
j.pdf=>jj2-3.jpg[3] PDF 595x842 595x842+0+0 16-bit sRGB 131KB 0.187u 0:00.218

D:\web\im>
snibgo's IM pages: im.snibgo.com
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Only first page of PDF is converted by IM under Windows

Post by snibgo »

v6.8.0-9 was also broken.
snibgo's IM pages: im.snibgo.com
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Only first page of PDF is converted by IM under Windows

Post by magick »

We can reproduce the problem you posted and have a patch in ImageMagick 6.8.2-3 within a few days. Thanks.
Post Reply