1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-29 08:40:33 +02:00

Added EncodedImage::mimetype()

This commit is contained in:
Oliver Vogel
2021-11-28 09:45:17 +01:00
parent fcee16c5e0
commit e643de053b

View File

@@ -15,6 +15,11 @@ class EncodedImage
$this->mimetype = $mimetype;
}
public function mimetype(): string
{
return $this->mimetype;
}
public function save(string $filepath): void
{
$saved = @file_put_contents($filepath, (string) $this);