1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-19 04:01:30 +02:00

Add alias for Image::toJpeg()

This commit is contained in:
Oliver Vogel
2023-10-24 20:19:20 +02:00
parent 6bdea8cc9e
commit 8b2ccc1cd9

View File

@@ -65,6 +65,11 @@ abstract class AbstractImage implements ImageInterface
);
}
public function toJpg(int $quality = 75): EncodedImage
{
return $this->toJpeg($quality);
}
public function toWebp(int $quality = 75): EncodedImage
{
return $this->encode(