Preview creation errors

38 views
Skip to first unread message

Dan Ruth

unread,
Aug 4, 2026, 5:26:44 PMAug 4
to ResourceSpace
I recently upgraded to v11.0, and also enabled `$offline_job_queue` in config.php

Suddenly, no previews are being created, no matter the resource type (.pdf, .jpg, .heic, .mov). When I attempt to recreate a preview when editing metadata, I get an unspecified error in my browser, and the Apache error log simply says: 

"WARNING: The convert command is deprecated in IMv7, use "magick" instead of "convert" or "magick convert".

I also see a bunch of Active jobs in my jobs queue that never seem to go away, nor change status to Complete. I have a cron job created to run pages/tools/offline_jobs.php and I've tried running it manually, but the jobs never seem to complete.

Here are my system details:
  • Server: Apache/2.4.58 (Ubuntu)
  • MySQL: 8.0.46-0ubuntu0.24.04.3
  • PHP version: 8.3.6
  • ImageMagick version: 7.1.1-48 (Beta)

Trond Helge Rolland

unread,
Aug 12, 2026, 2:29:30 AMAug 12
to ResourceSpace
I don't have a solution, but I believe the error message is related to how ImageMagick v7 works with RS 11.0, I had similar issues when trying another version of ImageMagick. I believe it's related to the function that tries to verify which version of ImageMagick you're using (it runs the convert -version command), but as you can tell from the log it gives you the message that the function is deprecated so the version checker fails, which in turn mess with the rest of the convert / magick procedure (aka creating thumbnails and previews etc)

If it's possible to run a ImageMagick version prior to 7 (the standard one should do fine), I'd try that first, unless there's a specific reason for you running 7.1 beta

Trond Helge Rolland

unread,
Aug 18, 2026, 4:22:47 AMAug 18
to ResourceSpace
Slight update on my end that might be the answer to some issues, if I'm reading the code right the functions within resourcespace tries to identify which version of ImageMagick we're running by first checking to see if there's a "magick" function on the system, that identifies at IMv7 install, but then it also checks the version by running the "--version" command towards it. 

But: The get_imagemagick_version function (/include/image_processing.php#L2476) tries to run preg_match from that version string, and it will fail if there's any text between "Version: ImageMagick" and the version numbers itself, so my test using the expanded imei library fails the check

IMv7 with imei version string: 
Version: ImageMagick (IMEI - https://github.com/SoftCreatR/imei) 7.1.2-26 Q16-HDRI x86_64 702175ac4:20260621 https://imagemagick.org

IMv6 that comes with Ubuntu 24.04 LTS
Version: ImageMagick 6.9.12-98 Q16 x86_64 18038 https://legacy.imagemagick.org

Have you tried running the 'magick --version' command on your system?
Reply all
Reply to author
Forward
0 new messages