PDF Thumbnails / Ghostscript / PHP 8
-
Hi,
I recently upgraded my local dev server (xampp on windows 10) to PHP 8 (8.02).While I was at it I also resolved to get Imagick working and ghostscript which I had not done before. After some / a lot of digging I got Imagick / running as PHP module (confirmed by phpinfo() etc) and ghostscript is running too.
I did all this mostly to get my dev-server to generate PDF thumbnails. It does not.
So I dug deeper:
The ‘Debug Media’ plugin reports that ImageMagick is installed (Version 7.0.11-1 Q16 x64 2021-02-21) also hat Ghostscript Version 9.53.3 is present. BUT
Active Editor is WP_Image_Editor_GD. As far as I understand that shouldn’t be the case if ImageMagick is present.The ‘PDF Thumbnails Support Test’ plugin reports:
ImageMagick: Installed
Imagick: Installed
Ghostscript: Not Installed
WordPress >= 4.7: InstalledThat’s strange but probably due to different ways both pluings check for the existence of the modules / functionality. (In fact I’m quite sure by now)
I feared that somehow there was a problem with my ImageMagick installation so I searched around for an easy way to get WP to use ImageMagick (preferably with some lines in function.php). But I only found that wordpress automatically uses ImageMagick over GD if present – mine does not.
What I also found was an other plugin (I normally don’t use plugins it avoidable at all) ‘ImageMagick Engine’ and for testing purposes I installed it. This plugin found the ImageMagick PHP-module and was able to use it just fine…
To clarify: My question is not about plugins, I used them just to find out information I wasn’t able to see any other way. For starters I just want my wordpress installations on my server to be able to render PDF thumbnails as of WP 4.7.
ImageMagick is present and working on my system but wordpress does not use it. Might that be related to PHP8 (wordpress support at, the time of writing this, claims beta support for PHP 8)
Is there a way to force wordpress to use ImageMagick over GD?Or am I doing / understanding something totally wrong?
Thank you
- The topic ‘PDF Thumbnails / Ghostscript / PHP 8’ is closed to new replies.