Skip to content

Commit ed5a70d

Browse files
authored
Fix PngEncoder returning wrong ImageFormat in ImageError
1 parent 8b0881b commit ed5a70d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codecs/png.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ impl<W: Write> ImageEncoder for PngEncoder<W> {
731731
}
732732
_ => Err(ImageError::Unsupported(
733733
UnsupportedError::from_format_and_kind(
734-
ImageFormat::Hdr.into(),
734+
ImageFormat::Png.into(),
735735
UnsupportedErrorKind::Color(color_type),
736736
),
737737
)),

0 commit comments

Comments
 (0)