mirror of
https://github.com/Intervention/image.git
synced 2025-08-07 22:36:54 +02:00
fixed issue when saving files without extension
This commit is contained in:
@@ -109,7 +109,7 @@ abstract class AbstractEncoder
|
|||||||
*/
|
*/
|
||||||
protected function setFormat($format = null)
|
protected function setFormat($format = null)
|
||||||
{
|
{
|
||||||
if (is_null($format) && $this->image instanceof Image) {
|
if ($format == '' && $this->image instanceof Image) {
|
||||||
$format = $this->image->mime;
|
$format = $this->image->mime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user