Project

General

Profile

Actions

Bug #24281

closed

ImageMagick does not work with quotes in exec() path on Windows

Added by Žiga Dolhar almost 14 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Category:
-
Target version:
-
Start date:
2010-12-03
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

In 4.4.4 and before, typo3 did not put quotes around the IM path when calling it with exec(). For example, the path is:

e:\ImageMagick\convert.exe +profile '*' geometry 170x136! -colorspace RGB -quality 70 "E:/websites/---/typo3/sysext/install/imgs/jesus.jpg"[0] "E:/websites/----/typo3temp/pics/install_read_jpg.jpg"

As of version 4.5 (I tried alpha3, beta1 and beta2), quotes are put around IM executable path. Therefore the following command is called:

"e:\ImageMagick\convert.exe" [the rest of the parameters are omitted]

This does not work on Windows. Calling the whole command (with quoted executable) from Windows command line works (IM creates the necessary files in typo3 folder. However, calling the command from php exec() silently fails. Calling the command with unquoted executable path works both from windows command line and from php exec().

Unfortunately, this prevents me from upgrading to the latest typo3 version.

(I can not say for sure, but if I remember correctly, using quoted path works in PHP version 5.3. However, this version introduces some other major problems with typo3 on Windows, e.g. deprecated functions.)
(issue imported from #M16656)


Files

16656.patch (1.72 KB) 16656.patch Administrator Admin, 2010-12-14 08:05
16656_v3.patch (580 Bytes) 16656_v3.patch Administrator Admin, 2011-02-21 20:19
16656_4-4_v3.patch (426 Bytes) 16656_4-4_v3.patch Administrator Admin, 2011-02-21 20:20

Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #17489: Install Tool image tests fail when there are spaces in the path nameClosedErnesto Baschny2007-07-19

Actions
Related to TYPO3 Core - Bug #24346: Thumbnail generation failsClosed2010-12-16

Actions
Has duplicate TYPO3 Core - Bug #24931: Quoting of path and filename in ImageMagick/GraphicsMagick not working on Windows + PHP5.2Closed2011-02-02

Actions
Actions

Also available in: Atom PDF