Project

General

Profile

Bug #19045 » bug_8878_fix_v1b_updated_4_5_19.patch

Adapted original patch to 4.5.19 - Felix Buenemann, 2012-08-21 23:24

View differences:

t3lib/class.t3lib_stdgraphic.php 2012-08-21 23:13:39.000000000 +0200
}
$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 . ' ';
(6-6/11)