(bugfix) Fixed Image Generation bug. Call in t3lib_div now uses the IM wrapper to...
authorBenni Mack <benni.mack@typo3.org>
Fri, 9 Nov 2007 20:47:32 +0000 (20:47 +0000)
committerBenni Mack <benni.mack@typo3.org>
Fri, 9 Nov 2007 20:47:32 +0000 (20:47 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-0@2681 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_div.php

index 4405861..f8a76fb 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-11-09  Benjamin Mack  <mack@xnos.org>
+
+        * (bugfix) Fixed Image Generation bug. Call in t3lib_div now uses the IM wrapper to render gifs/pngs
+
 2007-09-05  Thorsten Kahler  <thorsten.kahler@dkd.de>
 
        * Fixed bug #4160: Moving content elements in frontent editing mode causes crash
index a574989..242e387 100755 (executable)
@@ -457,7 +457,8 @@ class t3lib_div {
                                return $theFile;
                        } else {
                                $newFile = PATH_site.'typo3temp/readPG_'.md5($theFile.'|'.filemtime($theFile)).($output_png?'.png':'.gif');
-                               exec($GLOBALS['TYPO3_CONF_VARS']['GFX']['im_path'].'convert "'.$theFile.'" "'.$newFile.'"');
+                               $cmd = t3lib_div::imageMagickCommand('convert', '"'.$theFile.'" "'.$newFile.'"', $GLOBALS['TYPO3_CONF_VARS']['GFX']['im_path']);
+                               exec($cmd);
                                if (@is_file($newFile)) return $newFile;
                        }
                }