Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
There is bug when running Drupal+Imagemagick in windows. PHP's Exec function does not work correctly in Windows then I have added exec wrapper that detects current mode and I Windows are detected then uses POpen. This code is taken from php.net exec function manual.
function _image_exec($cmd) {
if (substr(php_uname(), 0, 7) == "Windows"){
if ($h = popen("start \"bla\" $cmd", "r")) {
pclose($h);
return true;
} else {
return false;
}
} else {
return exec($cmd);
}
}
Comment | File | Size | Author |
---|---|---|---|
image.inc-fix1.txt | 1.3 KB | tma0 |
Comments
Comment #1
drewish CreditAttribution: drewish commentedlooks like this has already been applied
Comment #2
(not verified) CreditAttribution: commented