为什么要迁移的文件输出多于我输入的文件


0

我使用以下方法将一些PDF文件转换为PNG文件:

mogrify -background white -alpha off -verbose -density 1000 -resize 1600 -format png ./*.pdf

在Microsoft Windows 10上(需要 安装ImagemagickGhostscript)。

运行mogrify之前包含的文件夹:

在此处输入图片说明

运行mogrify 包含的我的文件夹:

在此处输入图片说明

如何产生image_00003001-0.pngimage_00003001-1.png以及image_00003001-2.png已经出现?

控制台日志:

Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.

C:\Users\fdernoncourt\Downloads\test\test>mogrify -background white -alpha off -verbose -density 1000 -resize 1600 -format png ./*.pdf
[ghostscript library 9.21] -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r1000x1000"  "-sOutputFile=C:/Users/FDERNO~1/AppData/Local/Temp/magick-4620r8ZHLol6SeVY%d" "-fC:/Users/FDERNO~1/AppData/Local/Temp/magick-4620m3MK2WrYaV3Y" "-fC:/Users/FDERNO~1/AppData/Local/Temp/magick-4620bNrcdEbgPz0C"C:/Users/FDERNO~1/AppData/Local/Temp/magick-4620r8ZHLol6SeVY1 PNG 7000x7000 7000x7000+0+0 8-bit sRGB 488596B 0.609u 0:00.614
.\image_0000001.pdf PDF 7000x7000 7000x7000+0+0 16-bit sRGB 488596B 0.000u 0:00.003
.\image_0000001.pdf=>.\image_0000001.png PDF 7000x7000=>1600x1600 1600x1600+0+0 16-bit sRGB 416847B 3.469u 0:00.711
[ghostscript library 9.21] -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r1000x1000"  "-sOutputFile=C:/Users/FDERNO~1/AppData/Local/Temp/magick-4620h9GbXPAw8gLn%d" "-fC:/Users/FDERNO~1/AppData/Local/Temp/magick-4620JtgqmdOva50_" "-fC:/Users/FDERNO~1/AppData/Local/Temp/magick-4620BQCg_hCHj5J0"C:/Users/FDERNO~1/AppData/Local/Temp/magick-4620h9GbXPAw8gLn1 PNG 7000x7000 7000x7000+0+0 8-bit sRGB 515019B 0.609u 0:00.593
.\image_00001001.pdf PDF 7000x7000 7000x7000+0+0 16-bit sRGB 515019B 0.000u 0:00.005
.\image_00001001.pdf=>.\image_00001001.png PDF 7000x7000=>1600x1600 1600x1600+0+0 16-bit sRGB 446212B 3.422u 0:00.685
[ghostscript library 9.21] -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r1000x1000"  "-sOutputFile=C:/Users/FDERNO~1/AppData/Local/Temp/magick-4620Y3jZ55zTFuuw%d" "-fC:/Users/FDERNO~1/AppData/Local/Temp/magick-46204uESOyNRP4d1" "-fC:/Users/FDERNO~1/AppData/Local/Temp/magick-4620CSWbMrgy6xKq"C:/Users/FDERNO~1/AppData/Local/Temp/magick-4620Y3jZ55zTFuuw1 PNG 7000x7000 7000x7000+0+0 8-bit sRGB 532302B 0.563u 0:00.562
.\image_00002001.pdf PDF 7000x7000 7000x7000+0+0 16-bit sRGB 532302B 0.000u 0:00.006
.\image_00002001.pdf=>.\image_00002001.png PDF 7000x7000=>1600x1600 1600x1600+0+0 16-bit sRGB 464289B 3.453u 0:00.763
[ghostscript library 9.21] -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r1000x1000"  "-sOutputFile=C:/Users/FDERNO~1/AppData/Local/Temp/magick-4620c5A_o-XE8Via%d" "-fC:/Users/FDERNO~1/AppData/Local/Temp/magick-4620GGEzyomwONZe" "-fC:/Users/FDERNO~1/AppData/Local/Temp/magick-4620fRieoMrkJnqD"C:/Users/FDERNO~1/AppData/Local/Temp/magick-4620c5A_o-XE8Via1 PNG 4000x4000 4000x4000+0+0 8-bit sRGB 129502B 0.188u 0:00.187
C:/Users/FDERNO~1/AppData/Local/Temp/magick-4620c5A_o-XE8Via2 PNG 4000x4000 4000x4000+0+0 8-bit sRGB 135379B 0.188u 0:00.181
C:/Users/FDERNO~1/AppData/Local/Temp/magick-4620c5A_o-XE8Via3 PNG 4000x4000 4000x4000+0+0 8-bit sRGB 138411B 0.188u 0:00.179
.\image_00003001.pdf[0] PDF 4000x4000 4000x4000+0+0 16-bit sRGB 129502B 0.375u 0:00.378
.\image_00003001.pdf[1] PDF 4000x4000 4000x4000+0+0 16-bit sRGB 129502B 0.188u 0:00.195
.\image_00003001.pdf[2] PDF 4000x4000 4000x4000+0+0 16-bit sRGB 129502B 0.000u 0:00.010
.\image_00003001.pdf=>.\image_00003001-0.png[0] PDF 4000x4000=>1600x1600 1600x1600+0+0 16-bit sRGB 106061B 4.438u 0:00.833
.\image_00003001.pdf=>.\image_00003001-1.png[1] PDF 4000x4000=>1600x1600 1600x1600+0+0 16-bit sRGB 123627B 3.406u 0:00.899
.\image_00003001.pdf=>.\image_00003001-2.png[2] PDF 4000x4000=>1600x1600 1600x1600+0+0 16-bit sRGB 125529B 2.422u 0:00.968
[ghostscript library 9.21] -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r1000x1000"  "-sOutputFile=C:/Users/FDERNO~1/AppData/Local/Temp/magick-4620FJf-uVtE-LBr%d" "-fC:/Users/FDERNO~1/AppData/Local/Temp/magick-4620MXYzETv3mXaj" "-fC:/Users/FDERNO~1/AppData/Local/Temp/magick-4620OGD6l6YHmQuE"C:/Users/FDERNO~1/AppData/Local/Temp/magick-4620FJf-uVtE-LBr1 PNG 7000x7000 7000x7000+0+0 8-bit sRGB 547857B 0.563u 0:00.570
.\image_00100001.pdf PDF 7000x7000 7000x7000+0+0 16-bit sRGB 547857B 0.000u 0:00.004
.\image_00100001.pdf=>.\image_00100001.png PDF 7000x7000=>1600x1600 1600x1600+0+0 16-bit sRGB 460415B 3.438u 0:00.713
[ghostscript library 9.21] -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r1000x1000"  "-sOutputFile=C:/Users/FDERNO~1/AppData/Local/Temp/magick-4620cNle7W0jNfVy%d" "-fC:/Users/FDERNO~1/AppData/Local/Temp/magick-4620sOtPquz67jjr" "-fC:/Users/FDERNO~1/AppData/Local/Temp/magick-4620bwhPST4j8SYu"C:/Users/FDERNO~1/AppData/Local/Temp/magick-4620cNle7W0jNfVy1 PNG 7000x7000 7000x7000+0+0 8-bit sRGB 582141B 0.547u 0:00.541
.\image_00200001.pdf PDF 7000x7000 7000x7000+0+0 16-bit sRGB 582141B 0.000u 0:00.011
.\image_00200001.pdf=>.\image_00200001.png PDF 7000x7000=>1600x1600 1600x1600+0+0 16-bit sRGB 488440B 3.500u 0:00.691
[ghostscript library 9.21] -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r1000x1000"  "-sOutputFile=C:/Users/FDERNO~1/AppData/Local/Temp/magick-4620hlI2v4hZKWoN%d" "-fC:/Users/FDERNO~1/AppData/Local/Temp/magick-4620P9fXsO_Rgq46" "-fC:/Users/FDERNO~1/AppData/Local/Temp/magick-4620D1uWtiZeLFQ-"C:/Users/FDERNO~1/AppData/Local/Temp/magick-4620hlI2v4hZKWoN1 PNG 7000x7000 7000x7000+0+0 8-bit sRGB 598885B 0.563u 0:00.562
.\image_00300001.pdf PDF 7000x7000 7000x7000+0+0 16-bit sRGB 598885B 0.000u 0:00.004
.\image_00300001.pdf=>.\image_00300001.png PDF 7000x7000=>1600x1600 1600x1600+0+0 16-bit sRGB 493836B 3.500u 0:00.711
[ghostscript library 9.21] -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r1000x1000"  "-sOutputFile=C:/Users/FDERNO~1/AppData/Local/Temp/magick-4620XPBkCobwML12%d" "-fC:/Users/FDERNO~1/AppData/Local/Temp/magick-4620LSZUrhBVHovK" "-fC:/Users/FDERNO~1/AppData/Local/Temp/magick-4620mnr7WpyafgTx"C:/Users/FDERNO~1/AppData/Local/Temp/magick-4620XPBkCobwML121 PNG 7000x7000 7000x7000+0+0 8-bit sRGB 642897B 0.547u 0:00.550
.\image_00400001.pdf PDF 7000x7000 7000x7000+0+0 16-bit sRGB 642897B 0.000u 0:00.006
.\image_00400001.pdf=>.\image_00400001.png PDF 7000x7000=>1600x1600 1600x1600+0+0 16-bit sRGB 554808B 3.531u 0:00.725
[ghostscript library 9.21] -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r1000x1000"  "-sOutputFile=C:/Users/FDERNO~1/AppData/Local/Temp/magick-4620t1YplpFyLx5h%d" "-fC:/Users/FDERNO~1/AppData/Local/Temp/magick-4620CU1rrLSeEcFa" "-fC:/Users/FDERNO~1/AppData/Local/Temp/magick-4620jaN1roq6k8_0"C:/Users/FDERNO~1/AppData/Local/Temp/magick-4620t1YplpFyLx5h1 PNG 7000x7000 7000x7000+0+0 8-bit sRGB 626928B 0.641u 0:00.640
.\image_00500001.pdf PDF 7000x7000 7000x7000+0+0 16-bit sRGB 626928B 0.000u 0:00.006
.\image_00500001.pdf=>.\image_00500001.png PDF 7000x7000=>1600x1600 1600x1600+0+0 16-bit sRGB 545850B 3.250u 0:00.771

C:\Users\fdernoncourt\Downloads\test\test>

听起来像pdf有3页?
Tom Yan

@TomYan只有1
弗兰克Dernoncourt

尽管不是Ghostscript似乎在想什么。我认为,如果没有实际的pdf文件,很难(如果可能)告诉我们出了什么问题。可能是ghostscript错误,也可能只是pdf有问题。
Tom Yan
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.