Version 5.0.0 beta 4
This commit is contained in:
1 parent
e86153356a
commit
2f24f9de48
276 files changed
+8614
-6044
No files matched your search
@@ -165,6 +165,11 @@ class Gd extends Image
|
||||
imagewebp( $this->image, NULL, $quality );
|
||||
break;
|
||||
|
||||
case 'avif':
|
||||
$quality = Settings::i()->image_jpg_quality ?: 85;
|
||||
imageavif( $this->image, null, $quality );
|
||||
break;
|
||||
|
||||
}
|
||||
return ob_get_clean();
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ class Imagemagick extends Image
|
||||
$this->imagick = new Imagick( $this->tempFile );
|
||||
|
||||
/* Set quality (if image format is JPEG) */
|
||||
if ( in_array( mb_strtolower( $this->imagick->getImageFormat() ), array( 'jpg', 'jpeg', 'webp' ) ) )
|
||||
if ( in_array( mb_strtolower( $this->imagick->getImageFormat() ), array( 'jpg', 'jpeg', 'webp', 'avif' ) ) )
|
||||
{
|
||||
$this->imagick->setImageCompressionQuality( (int) Settings::i()->image_jpg_quality ?: 85 );
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user