We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 808e933 commit e20fc9bCopy full SHA for e20fc9b
src/ImageResponseFactory.php
@@ -125,6 +125,8 @@ private function format(): Format
125
return Format::create($this->format);
126
}
127
128
+ // target format is undefined (null) at this point:
129
+ // try to extract the original image format or use jpeg by default.
130
return Format::tryCreate($this->image->origin()->mediaType()) ?? Format::JPEG;
131
132
0 commit comments