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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user