Fixed bug #4186 (correction): cropping didn't work for IM4/5 and GM (thanks to Helmut...
authorMartin Kutschker <martin.t.kutschker@blackbox.net>
Wed, 16 Apr 2008 17:26:41 +0000 (17:26 +0000)
committerMartin Kutschker <martin.t.kutschker@blackbox.net>
Wed, 16 Apr 2008 17:26:41 +0000 (17:26 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3583 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_stdgraphic.php

index c290f76..63ec9bb 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+
+2008-04-16  Martin Kutschker  <masi@typo3.org>
+
+       * Fixed bug #4186 (correction): cropping didn't work for IM4/5 and GM (thanks to Helmut Hummel)
+
 2008-04-16  Benjamin Mack  <benni@typo3.org>
 
        * HCI: Changed t3skin icon "new_file.gif"
index 1638cdc..ca8c5d5 100644 (file)
@@ -2176,7 +2176,7 @@ class t3lib_stdGraphic    {
                                        if (!$data['origH']) { $data['origH'] = $data[1]; }
                                        $offsetX = intval(($data[0] - $data['origW']) * ($data['cropH']+100)/200);
                                        $offsetY = intval(($data[1] - $data['origH']) * ($data['cropV']+100)/200);
-                                       $params .= ' -crop '.$data['origW'].'x'.$data['origH'].'+'.$offsetX.'+'.$offsetY.'! ';
+                                       $params .= ' -crop '.$data['origW'].'x'.$data['origH'].'+'.$offsetX.'+'.$offsetY.' ';
                                }
 
                                $command = $this->scalecmd.' '.$info[0].'x'.$info[1].'! '.$params.' ';