Skip to content

Commit ebec7cc

Browse files
sschuellermlocati
authored andcommitted
feat: Added imagemagick cli default filter SyncFast.
1 parent 9d09a8e commit ebec7cc

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/Image/ImageInterface.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,13 @@ interface ImageInterface extends ManipulatorInterface
172172
*/
173173
const FILTER_SINC = 'sinc';
174174

175+
/**
176+
* Resampling filter: sincfast.
177+
*
178+
* @var string
179+
*/
180+
const FILTER_SINCFAST = 'sincfast';
181+
175182
/**
176183
* Returns the image content as a binary string.
177184
*

src/Imagick/Image.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,6 +1021,7 @@ private function getFilter($filter = ImageInterface::FILTER_UNDEFINED)
10211021
ImageInterface::FILTER_POINT => \Imagick::FILTER_POINT,
10221022
ImageInterface::FILTER_QUADRATIC => \Imagick::FILTER_QUADRATIC,
10231023
ImageInterface::FILTER_SINC => \Imagick::FILTER_SINC,
1024+
ImageInterface::FILTER_SINCFAST => \Imagick::FILTER_SINCFAST,
10241025
ImageInterface::FILTER_TRIANGLE => \Imagick::FILTER_TRIANGLE,
10251026
);
10261027
if (!in_array($filter, static::getAllFilterValues(), true)) {

0 commit comments

Comments
 (0)