Skip to content

Commit

Permalink
Allow png images (#862)
Browse files Browse the repository at this point in the history
  • Loading branch information
InfiniteStash authored Dec 12, 2024
1 parent 1705cf1 commit 1559247
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/image/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func populateImageDimensions(imgReader *bytes.Reader, dest *models.Image) error
return err
}

if format != "jpeg" && format != "webp" {
if format != "jpeg" && format != "webp" && format != "png" {
return fmt.Errorf("unsupported image format: %s", format)
}

Expand Down

0 comments on commit 1559247

Please sign in to comment.