Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Sources/Graphics/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,11 @@ public function createThumbnail(int $max_width, int $max_height): object|bool
}

// We don't need to create a thumbnail if one is already embedded.
if (\function_exists('exif_thumbnail') && exif_thumbnail($this->source) !== false) {
// checkForEmbeddedThumb() answered this when the image was loaded, and
// it does so without a warning: exif_thumbnail() emits one for every
// format that cannot carry an embedded thumbnail, so asking it here
// again put a row in the error log for each PNG anyone uploaded.
if ($this->embedded_thumb) {
return false;
}

Expand Down