In some cases, the ImageMagick command-line binary is not found. Even if ImageMagic exist.
The problem occurs in this function: function_exists('shell_exec')
returns an empty result when using $whereIsCommand $fullpath
. As a workaround, I had to comment out that check and instead use @is_executable($fullpath)
.”
function ime_is_executable($fullpath) {
$whereIsCommand = (PHP_OS == 'WINNT') ? 'where' : 'which';
return function_exists('shell_exec') ?$whereIsCommand $fullpath
: @is_executable($fullpath);
}
function ime_is_executable($fullpath) {
$whereIsCommand = (PHP_OS == 'WINNT') ? 'where' : 'which';
return @is_executable($fullpath);
}
]]>
Hello,
My WORDPRESS 6.6.1 installation runs PHP 8.3 and the IMAGEMAGICK ENGINE plugin version 1.7.9.
The server is a : Linux 4.4.400-icpu-099 x86_64
It currently displays the <Imagick PHP module not found> error.
(the hoster / service provider didn’t give any details on how to install it).
I spent a few hours looking for information on fixing the issue, but none of the reviewed articles yet clearly described where/in which directory the IMAGICK PHP MODULE has to be installed on the server, within the WORDPRESS project.
Any location-advice and step by step info regarding the ssh-prompts would be much appreciated.
??
Self hosted site. Plugin is installed and enabled.
Health check says module is not installed.
Settings says module is not installed.
Server info:
]]>I have tried both the command line and php module but cant get my site to enable image magick. I requested the package to be installed by the host (Liguid Web) and they did. I asked them to send me the path and it’s /usr/bin/convert. When I “test path” I get a circle of death. When I try to enable using cli or php module, I get a 404 error page after submitting. Going back to the settings I see that is did not get enabled.
]]>Just downloaded the plug in, but getting this error “No valid ImageMagick mode found!”
]]>Hello!
I need to display a list of PDF files with a thumbnail of the first page. I’ve only found the Document Gallery plugin to do this. As it requires imagemagick as a dependency, I have also installed it.
I use WordPress 6.4, Document Gallery 4.4.4 and imagemagick-engine 1.7.8.
In my site admin, everything seems to work fine: I create an image gallery with the Gutenberg block, then I upload PDFs via “Add to Document Gallery”.
But in the end, no files are uploaded.
No php errors in the logs.
Thanks for your help.
Marc
]]>When the plugin is installed it is not longer possible to login with Plesk WP Toolkit:
PHP Fatal error: Uncaught TypeError:
array_key_exists(): Argument #2 ($array) must be of type array, null given in /var/www/vhosts/domain.tld/httpdocs/wp-content/plugins/imagemagick-engine/imagemagick-engine.php:184
Stack trace:
0 /var/www/vhosts/domain.tld/httpdocs/wp-content/plugins/imagemagick-engine/imagemagick-engine.php(213): ime_setup_options()
1 /var/www/vhosts/domain.tld/httpdocs/wp-content/plugins/imagemagick-engine/imagemagick-engine.php(115): ime_get_option()
2 /var/www/vhosts/domain.tld/httpdocs/wp-content/plugins/imagemagick-engine/imagemagick-engine.php(91): ime_active()
3 /var/www/vhosts/domain.tld/httpdocs/wp-includes/class-wp-hook.php(324): ime_init_early()
4 /var/www/vhosts/domain.tld/httpdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
5 /var/www/vhosts/domain.tld/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action() 6 /var/www/vhosts/domain.tld/httpdocs/wp-settings.php(506): do_action()
Trying to use imagemagic to make pdf visible on site but without success.
The image engine plugin shows php all happy with green checkbox, but that’s not working still
Any ideas?
]]>i don’t know y but I’m working on this error more hours to get the solution but unable to resolve this error.
]]>Hi, I think Image resize is not happening for Webp and gif formats, Can you please cross check and update please.
Thanks
]]>Hi,
When I’ve launched first time “Regenerate” images in the plugin, it stop to 55% and since the all Website is with an internal error 500. Have you an idea of the reason of this problem ?
Thanks
]]>Yith WooCommerce is looking for compatibility version up to 6.4. How do I fix this issue if the software isn’t out yet?
ImageMagick Version?
Yith for WooCommerce Request a Quote?needs at least?6.4.0?version. Contact your hosting company in order to install it.
hi
I created a front page in elementor and it shows huge gaps between feature image and the post content when viewed on the homepage. It doesn’t look at all like this in the elementor editor page. It looks fine and as it should be.
This only changed after i installed the imagemagick plugin and though i’ve deactivated that i still get these huge gaps. there is nowhere i’ve looked that seems to be causing this.
Any help would be GREATLY appreciated.
(Also posting this in elementor support forum)
]]>Neither the PHP extension is found, nor is the executable. Can’t use the plugin. This is on WordPress 6.2 with PHP 8.2.4.
I have installed the extension as described on the Github page.
$ php -i | grep imagick
imagick
imagick module => enabled
imagick module version => @PACKAGE_VERSION@
imagick classes => Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel
imagick.allow_zero_dimension_images => 0 => 0
imagick.locale_fix => 0 => 0
imagick.progress_monitor => 0 => 0
imagick.set_single_thread => 1 => 1
imagick.shutdown_sleep_count => 10 => 10
imagick.skip_version_check => 0 => 0
The executable is also there:
$ which convert
/usr/bin/convert
What should I check? Any suggestions are appreciated.
Regards
]]>I was considering this plugin but my site health info says that WP is using imagemagick so could this be another plugin or is WP using it by default?
Active editor
WP_Image_Editor_Imagick
ImageMagick version number
1808
ImageMagick version string
ImageMagick 7.1.0-2 Q16 x86_64 2021-06-25 https://imagemagick.orgImagick version. 3.7.0
For your action, please. Thanks.
]]>Hello,
First of all, thanks for your plugin which saved my life after upgrading to a brand new server, and for a reason I have yet to determine, the new server took 10 times longer than the old one for miniature regeneration. Your plugin fixed that.
Do you think there is a way to enable multiple core processing ?
Maybe using MAGICK_THREAD_LIMIT=8
somewhere in the code like I did on wc_class_regenerate_images_request.php (and it actually worked!) ?
That would be great, thank you.
]]>PHP 8.1 is running on my website with WordPress 6.0. Imagick is not part of this PHP8.1 because it is to ‘heavy’ says my Host. “This module imagick is currently not available on our shared hosting servers because this is quite heavy software. It’s an optional module as WordPress says, so it’s not mandatory”!
]]>Hey guys,
Just recently installed ImageMagick on my installation of WordPress. I am forced to use the command line executable as I’m using a shared server (ionos) instead of the PHP module.
Because of this, site health does not show ImageMagick as active and recommends installing.
However, I’m pretty sure it’s working as the quality of my regenerated thumbnail and scaled images is improved.
The problem I’m running into is that, when running the Regenerate Thumbnails plugin, after about 170 images, the log starts to error out 503 and then completely tanks my website. It’s inaccessible, going to far as to show the “placeholder” website that says the site was just registered.
I can contact my host and then they are able to reset it for me, but this just keeps happening. I’ve crashed the server 5 times today trying to regenerate all of my thumbnails.
Mind you, my images are very large (28mb each source, scaled to about 1.5mb each at 3250px).
I’m assuming I’m running into a memory or cache issue or.. something. But I’m not sure how to tell.
I’ve messed with policy.xml on the ImageMagick install and set a memory limit of 768MiB, thinking that may be the cause, but it didn’t seem to help. From what php_info tells me, I have 800mb available memory for my part of the server. I’ve also set maximum memory request to 528MiB and maximum disk size to 8GiB.
In reality, I don’t know if that helps or what it really does. I’m new to this entirely.
If anyone could share some help, I would greatly appreciate it.
]]>The settings page is not working, “the link you followed is expired”, any ideas?
]]>Hi from Spain:
In according with the techies of WP Offload media, there are a problem if I use your plugins and Delicious Brains S3 Storage.
This is the email we have received:
“”
`Hi there,
We apologize for taking some time in diagnosing this,
have consulted our devs again and here’s what they discovered.
On your wp_postmeta table, it seems that you have _wp_attached_file records with errors on them.
They mostly say – O:8:”WP_Error”:3:{s:6:”errors”;a:1:{s:19:”error_loading_image”;a:1:{i:0;s:23:”?El archivo no existe?”;}}s:10:”error_data”;a:1:{s:19:”error_loading_image”…
This seems to be a pretty unique error, that’s why we are having a hard time finding the cause.
According to our devs, there’s a current compatibility issue between OME and ImageMagick Engine.
After deactivating the ‘ImageMagick Engine’ plugin uploads works as they should, but when that plugin is activated again, it stops working.
Judging by the content in wp_postmeta, they are guessing that ImageMagick Engine tries to pick up the image but fails because “Remove from server” of WP Offload Media is enabled.
Then the error message from that plugin gets passed into the database.
Were you using ImageMagick Engine for a long time? or was it added recently?
It would be possible to recreate the postmeta by using ‘Regenerate Thumbnails’ plugin, as the _wp_attached_file record looks intact on all the damaged items.
But as always, it is advisable to backup of your site in case things go wrong.
Kindly let us know how this goes,
Thank you.
“”
]]>Hello, some simple Questions for a expert. I have an account on IONOS, but there WP is only running with the GD-Library. After contacting the support, they said after doing some things changing php.ini and so on you can also use ImageMagick. But I saw there is also a Plugin for that.
First Question, what does ImageMagick exactly do at WordPress. I think it is the working software for pictures at wordpress in the mediathek and it has got better options than the GD-Library, therefore it is the better way. Do I see that correctly?
Question two, if i will install the plugin, have I to run the plugin as a PHP-Modul not from the command-line, provided it is already installed at the directory usr/bin ?
Would be nice to get a soon answer
thanks
Alfons from Germany
After installing the Imagick plugin per my Stie Health recommendation. I get the error which says: “The Imagick PHP Module is not found”. I imagined that it would have been included with the plugin’s WordPress download, but I’ve not found any way to correct this situation. I’m also aware that the plugin has not been test with the current version of WordPress but any suggestion would be appreciated
]]>Hi!
wp: 5.8.1
wc: 5.4.2 – 5.7
We have installed this plugin 10+ sites. We have error at least half of the sites.
The Regenerate with “ImageMagick images too” can have server error 500.
Error:
https://sentry.io/share/issue/f0b81cc27c044284bc6e7857c6d96056/
I have Image Magick installed and Imagick PHP Module installed and the Image Magic Plugin installed. But WordPress still uses WP_Image_Editor_GD.
Any idea why or what I can do to force it to use IM?
You can see my screenshots here: https://imgur.com/a/Sr7nlxl
Can this plugin be used to place dynamic text (watermark) on images while they are served? For example, I might want different text to display depending on who is logged in.
I am willing to implement additional functions/plugins to do this.
]]>Do you guys even support ‘-interlace JPEG’ option?
If i run ‘identify -verbose myimage.jpg | grep Interlace’ command after your module processes the image, it says None, and should be JPEG which is the real JPEG Progressive image type.
So, when i manually add this line to your imagemagick-engine.php file:
$cmd .= ‘ -interlace Plane’;
It works and the ‘identify’ function returns ‘Interlace: JPEG’.
Any plans to add this most important feature to your module?
Or we have to live with patch (for those who knows how to deal with this stuff)?
Hi guys,
searching “path” in this forum doesn’t work, but /usr/bin and another 100 variants did not work for me…
When I activate module ImageMagick on my webhosting, my thumbnails are mostly corrupted. (screenshot: https://ibb.co/93HdvMd)
When I have activated PHP module but I deactivate ImageMagick in settings of your plugin, thumbnails are genereated well.
But I guess you can’t help me with that. Maybe some related parameter of my VPS is set to an insufficient value.
But I tried to set your plugin to Command line mode. However, specifying the path l of the plugin is an overwhelming problem for me. It accepts absolutely no path.
I have access to SSH, but I don’t know what file to look for to find the correct path to enter in your plugin settings.
Jiri
]]>Hi,
Just letting you know that the quality setting is (perhaps unsurprisingly) ignored for WebP images using WordPress 5.8’s newly added WebP support. As i had already increased the WebP quality manually, this plugin actually deactivates that and appears to default back to 75.
The JPG’s definitely have a lot more detail to them.
]]>If the file name starts with Japanese, it will be resized with the Japanese part of the file name removed.
This will not work correctly.
Example
あいうえお.jpg —>> .jpg-200×200.jpg
————————————————–
However, if the file name starts with a single-byte alphanumeric character, it will not be removed even if it contains Japanese characters.
It works correctly.
Example
000_あいうえお.jpg —>> 000_あいうえお-200×200.jpg