Attachment thumbnails stopped generating after updating ImageMagick7 from 7.1.1.47 to 7.1.2.0

azzurro

Active member
Attachment thumbnails stopped generating on my Alma Linux 9 system updating to the the updated ImageMagick7 packages from 7.1.1.47 to 7.1.2.0. Only generic icons would show.

Thumbnails worked again after rolling back to 7.1.1.47. Bad thumbnails were fixed running the 'Rebuild attachment thumbnails' tool.

I've done several updates to ImageMagick7 in the past without issues so a bit unusual.

Default image processor for attachments I've had set as Imagemagick for many years, is there a preferred option these days?

Currently I see these 2 options:
  • PHP built-in GD image library
  • Imagemagick PECL extension
 
Attachment thumbnails stopped generating on my Alma Linux 9 system updating to the the updated ImageMagick7 packages from 7.1.1.47 to 7.1.2.0. Only generic icons would show.

Thumbnails worked again after rolling back to 7.1.1.47. Bad thumbnails were fixed running the 'Rebuild attachment thumbnails' tool.

I've done several updates to ImageMagick7 in the past without issues so a bit unusual.

Default image processor for attachments I've had set as Imagemagick for many years, is there a preferred option these days?

Currently I see these 2 options:
  • PHP built-in GD image library
  • Imagemagick PECL extension
have you run/re-compiled pecl install imagick? ImageMagick alone doesn't do that part for you. install imagick, restart php and check phpinfo for imagick.
 
Last edited:
have you run/re-compiled pecl install imagick? ImageMagick alone doesn't do that part for you. install imagick, restart php and check phpinfo for imagick.
Thanks, I haven't done that part in the past but will try that when I get a chance. The rebuilding thumbnails takes several hours on my forum so I'm hesitant at the moment unless it's possibly a more widespread issue with the version upgrade.

Edit: I use the pecl RPM package: php-pecl-imagick-im7-3.8.0 (PHP 8.3) if that makes any difference.
 
Last edited:
Thanks, I haven't done that part in the past but will try that when I get a chance. The rebuilding thumbnails takes several hours on my forum so I'm hesitant at the moment unless it's possibly a more widespread issue with the version upgrade.
You will need to hook imagick into php for it to work, and you should be fine. You don't need to rebuild anything, if they're already created previously and still work then you are good. Going forward after installing imagick and enabling it new uploads will use that instead of GD.

 
You will need to hook imagick into php for it to work, and you should be fine. You don't need to rebuild anything, if they're already created previously and still work then you are good. Going forward after installing imagick and enabling it new uploads will use that instead of GD.

I edited my message previously to add I use the pecl RPM package: php-pecl-imagick-im7-3.8.0 (PHP 8.3).

I've been running ImageMagick 7 for a while, probably several years and updating using dnf on the system, usually without issues. I looked at the changelog for 7.1.2.0 and didn't see anything that stood out.
 
I edited my message previously to add I use the pecl RPM package: php-pecl-imagick-im7-3.8.0 (PHP 8.3).

I've been running ImageMagick 7 for a while, probably several years and updating using dnf on the system, usually without issues. I looked at the changelog for 7.1.2.0 and didn't see anything that stood out.
imagick is a separate package and it's the part xenforo needs. ImageMagick is only one part of the puzzle.
 
imagick is a separate package and it's the part xenforo needs. ImageMagick is only one part of the puzzle.
The only update yesterday that dnf had was ImageMagick7- ImageMagick7-libs which I updated and when the problem started. Rolling back those fixed the issue. Since that update I did see some other system updates, some kernel-related and glib2-2.68.4. I'll try testing the ImageMagick update later during downtime, since I know rollback works and is quick.
 
The only update yesterday that dnf had was ImageMagick7- ImageMagick7-libs which I updated and when the problem started. Rolling back those fixed the issue. Since that update I did see some other system updates, some kernel-related and glib2-2.68.4. I'll try testing the ImageMagick update later during downtime, since I know rollback works and is quick.
Imagick doesn't usually install with dnf it's the php extension community library (pecl) installer so all you really have to check is your phpinfo. If it's not their right now you need to install imagick extension again via pecl.

Screenshot_20250718-021101_Brave.webp
 
Using remi repos I do have the pecl extension:
php-pecl-imagick-im7-3.8.0-1.el9.remi.8.3.x86_64

And I verfied phpinfo looks similar:

imagick.webp

I've been using the Imagemagick PECL extension for years. Just yesterday I ran into an issue updating to the latest ImageMagick 7 version so thought it best to post here in case anyone else may run into similar.
 
Last edited:
Looks like that was it - I ran the update again and this time see the notice:

WARNING : ImageMagick7 modules directory have changed.
You need to restart some services to take care of
the new location (e.g. httpd, php-fpm).

I stopped and started the httpd web server and thumbnails are generating ok. This issue can be mark closed (not an issue with XenForo). Thanks to all for helping with the debugging.
 
Last edited:
Back
Top Bottom