Project

General

Profile

Bug #19045 » bug_8878_fix_v1.patch

Administrator Admin, 2010-06-01 15:54

View differences:

class.t3lib_stdgraphic.php 2010-06-01 15:49:48.000000000 +0200
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.' ';
// option to remove empty canvas for transparent graphics is inverted in im6 vs. im4 (gm always crops)
$params .= ' -crop '.$data['origW'].'x'.$data['origH'].'+'.$offsetX.'+'.$offsetY.($this->im_version_4?' ':'! ');
}
$command = $this->scalecmd.' '.$info[0].'x'.$info[1].'! '.$params.' ';
(2-2/11)