Project

General

Profile

Bug #19045 » bug_8878_fix_v1b_svn8197.patch

Administrator Admin, 2010-07-16 17:23

View differences:

t3lib/class.t3lib_stdgraphic.php (working copy)
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.' ';
(5-5/11)