
0
Not a bug
Imagick Not Generating Thumbnails for PDFs
So I just got Imagick working (boy that was a challenge with Windows lol), however I am running into errors when it tries to generate a thumbnail for PDFs. I have been able to generate a PDF thumbnail using the magick file.pdf file.jpg command, I've also gone into Imagick's config XML and modified the temporary folder, but it still fails. The following is the error I get from FileRun. Regular photo thumbnails work fine, and I have associated PDF thumbnail generation with Imagick in FileRun's control panel.
Debugging is on (1664398605) Request options: Array ( [skipNotification] => 1 [caching] => [keepCache] => 1 [debug] => 1 ) In use options: Array ( [skipNotification] => 1 [caching] => [keepCache] => 1 [debug] => 1 [width] => 400 [height] => 400 [geometry] => contain [pageNo] => 0 [forceExt] => pdf ) Processing: C:/FR/img-210820111059-0001.pdf As: pdf File size: 1034295 bytes (1010 KB) Removing expired lock: C:/FR/.filerun.thumbnails/img-210820111059-0001.pdf/1034295/400_400_contain[1].png.lock Creating lock: C:/FR/.filerun.thumbnails/img-210820111059-0001.pdf/1034295/400_400_contain[1].png.lock Resizer: \FileRun\Thumbs\Resizers\IMagick Resizing using IMagick PHP Extension Error: FailedToExecuteCommand `"gs" -sstdout=%stderr -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -dPrinted=false -dFirstPage=1 -dLastPage=1 "-sOutputFile=C:/Windows/TEMP/magick-O0Pw-ngybBGIxK-S_e4nSlJBwBYMYG3U%d" "-fC:/Windows/TEMP/magick-8GSbfx9IXMNQ8jLsZwpysQkhKZiWjBWK" "-fC:/Windows/TEMP/magick-yTh4ty94_MN7B-5rvaEoo0E93Wdm3YYT"' (The system cannot find the file specified. ) @ error/delegate.c/ExternalDelegateCommand/516 Resize failed. Processing time: 0.0186 seconds. Sending no content headers.
Customer support service by UserEcho
Try Graphics Magick from here, versions newer than 1.3.35 dont work
That worked! I was a bit tripped up since Graphics Magick doesn't report Ghost Script is enabled, but it still works.
Heres the latest working ghostscript aswell if you want that too... fairly certain the path needs to be added to the environment variables, i.e. C:\Program Files\gs\gs9.52\bin
Edit; Oh and the fonts... should be placed in the gs folder