5/10/2023 0 Comments Imagemagick 6.6.5This script works flawlessly (takes the jesus.jpg and creates a new install_read_jpg.jpg file). "E:/websites/misc/im/jesus.jpg" "E:/websites/misc/im/install_read_jpg.jpg"' $exec = 'E:/gm/gm.exe convert profile \'*\' -geometry 170x136! -colorspace RGB -quality 70 I created a simple php script and ran it: I tried to isolate the issue, and apparently it lies within PHP. I'm running Windows 2008 with IIS7, php 5.2.14 (safe mode off), IM ImageMagick 6.6.5-8 Q16. However, this version introduces some other major problems with typo3 on Windows, e.g. ![]() (I can not say for sure, but if I remember correctly, using quoted path works in PHP version 5.3. Unfortunately, this prevents me from upgrading to the latest typo3 version. Calling the command with unquoted executable path works both from windows command line and from php exec(). However, calling the command from php exec() silently fails. Calling the whole command (with quoted executable) from Windows command line works (IM creates the necessary files in typo3 folder. Therefore the following command is called: For example, the path is:Į:\ImageMagick\convert.exe profile '*' geometry 170x136! -colorspace RGB -quality 70 "E:/websites/-/typo3/sysext/install/imgs/jesus.jpg" "E:/websites/-/typo3temp/pics/install_read_jpg.jpg"Īs of version 4.5 (I tried alpha3, beta1 and beta2), quotes are put around IM executable path. ![]() In 4.4.4 and before, typo3 did not put quotes around the IM path when calling it with exec().
0 Comments
Leave a Reply. |