Skip to content

Commit e20fc9b

Browse files
committed
Add comment
1 parent 808e933 commit e20fc9b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ImageResponseFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ private function format(): Format
125125
return Format::create($this->format);
126126
}
127127

128+
// target format is undefined (null) at this point:
129+
// try to extract the original image format or use jpeg by default.
128130
return Format::tryCreate($this->image->origin()->mediaType()) ?? Format::JPEG;
129131
}
130132
}

0 commit comments

Comments
 (0)