0
Under review

GraphicsMagick Thumbnail Generation not working

sascha 3 weeks ago updated by Vlad R 2 weeks ago 1

Hello,

After using FileRun for a while without any thumbnails for images or videos I decided today to set up GraphicsMagick and ffmpeg. After failing back and forth with all the different user rights and folder permissions on my Windows Server I finally got ffmpeg to work flawlessly, but GraphicsMagick is still not working, unfortunately.

Debugging is on (1626096238)
Request options:
Array
(
    [skipNotification] => 1
    [caching] => 
    [debug] => 1
)
In use options:
Array
(
    [skipNotification] => 1
    [caching] => 
    [debug] => 1
    [width] => 400
    [height] => 400
    [geometry] => contain
    [pageNo] => 0
    [forceExt] => jpeg
)
Processing: X:/drive/home/Alina/34539C9A-64B6-4895-90DD-CE7998202EEA.jpeg
As: jpeg
File size: 5467087 bytes (5.2 MB)
File is safe for web.
File is larger than 5 MB so it will get processed.
Removing expired lock: C:/wamp64/www/subdomains/drive/thumbnail-cache/X/drive/home/Alina/34539C9A-64B6-4895-90DD-CE7998202EEA.jpeg/5467087/400_400_contain[1].png.lock
Creating lock: C:/wamp64/www/subdomains/drive/thumbnail-cache/X/drive/home/Alina/34539C9A-64B6-4895-90DD-CE7998202EEA.jpeg/5467087/400_400_contain[1].png.lock
Resizing using ImageMagick
Running: "C:/Program Files/GraphicsMagick-1.3.35-Q16/gm.exe" -size "400x400" "X:/drive/home/Alina/34539C9A-64B6-4895-90DD-CE7998202EEA.jpeg" -verbose -auto-orient -thumbnail "400x400>" -strip -quality 95 "C:/wamp64/www/subdomains/drive/thumbnail-cache/X/drive/home/Alina/34539C9A-64B6-4895-90DD-CE7998202EEA.jpeg/5467087/400_400_contain[1].png" && exit
Results:
 * returned code: 1
 * returned text: Array
(
)
Resize failed.
Displaying icon for jpeg extension instead.


As you can see I'm using GraphicsMagick 1.3.35 and maybe this is already part of or the actual problem. With this version "gm -size ..." is not a valid command, it has to be "gm convert -size..." to properly work. So 

Therefore my questions:


  • Do I have to use an older GraphicsMagick version that does not require the "convert" before "-size"? Which GraphicsMagick version would that be on Windows?
  • Or is there a way to add the "convert" somehow before all the other thumbnail generation arguments?

Thanks for your help,

Sascha

Under review

You can edit the path to make it "gm.exe convert"