mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-01 11:02:43 +02:00
external imagick fix watermark issue if the watermark is larger than target derivative (the width/height of image object did not reflect applied resize/crop)
git-svn-id: http://piwigo.org/svn/trunk@28199 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -547,6 +547,9 @@ class image_ext_imagick implements imageInterface
|
||||
|
||||
function crop($width, $height, $x, $y)
|
||||
{
|
||||
$this->width = $width;
|
||||
$this->height = $height;
|
||||
|
||||
$this->add_command('crop', $width.'x'.$height.'+'.$x.'+'.$y);
|
||||
return true;
|
||||
}
|
||||
@@ -583,6 +586,9 @@ class image_ext_imagick implements imageInterface
|
||||
|
||||
function resize($width, $height)
|
||||
{
|
||||
$this->width = $width;
|
||||
$this->height = $height;
|
||||
|
||||
$this->add_command('filter', 'Lanczos');
|
||||
$this->add_command('resize', $width.'x'.$height.'!');
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user