Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
angrybrad committed Jun 22, 2021
1 parent 92e4b80 commit 5ee4b6a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Imagick/Imagick.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function smartResize($columns, $rows, $keepImageProfiles = false, $keepEx
{

$this->setOption('filter:support', '2.0');
$this->thumbnailImage($columns, $rows, false, false, \Imagick::FILTER_TRIANGLE, $keepImageProfiles, $keepExifData);
$this->_thumbnailImage($columns, $rows, false, false, \Imagick::FILTER_TRIANGLE, $keepImageProfiles, $keepExifData);

$this->unsharpMaskImage(0.25, 0.25, 8, 0.065);

Expand Down Expand Up @@ -62,11 +62,11 @@ public function smartResize($columns, $rows, $keepImageProfiles = false, $keepEx
/**
* Changes the size of an image to the given dimensions and removes any associated profiles.
*
* `thumbnailImage` changes the size of an image to the given dimensions and
* `_thumbnailImage` changes the size of an image to the given dimensions and
* removes any associated profiles. The goal is to produce small low cost
* thumbnail images suited for display on the Web.
*
* With the original Imagick thumbnailImage implementation, there is no way to choose a
* With the original Imagick _thumbnailImage implementation, there is no way to choose a
* resampling filter. This class recreates Imagick’s C implementation and adds this
* additional feature.
*
Expand All @@ -85,10 +85,10 @@ public function smartResize($columns, $rows, $keepImageProfiles = false, $keepEx
* @return bool Indicates whether the operation was performed successfully.
*/

public function thumbnailImage($columns, $rows, $bestfit = false, $fill = false, $filter = \Imagick::FILTER_TRIANGLE, $keepImageProfiles = false, $keepExifData = false)
private function _thumbnailImage($columns, $rows, $bestfit = false, $fill = false, $filter = \Imagick::FILTER_TRIANGLE, $keepImageProfiles = false, $keepExifData = false)
{

// sample factor; defined in original ImageMagick thumbnailImage function
// sample factor; defined in original ImageMagick _thumbnailImage function
// the scale to which the image should be resized using the `sample` function
$SampleFactor = 5;

Expand Down

0 comments on commit 5ee4b6a

Please sign in to comment.