diff --git a/contributors/people.toml b/contributors/people.toml index 04286cc129..da155105b8 100644 --- a/contributors/people.toml +++ b/contributors/people.toml @@ -86,3 +86,6 @@ sync_github_name = true [people.Peaperfish] real_name = "Yule Wang" display_name = "Brian Wang" + +[people.Terra854] +display_name = "Terra854" diff --git a/crates/codecs/src/encode.rs b/crates/codecs/src/encode.rs index e35bcd3a7a..5f8a92ea68 100644 --- a/crates/codecs/src/encode.rs +++ b/crates/codecs/src/encode.rs @@ -490,9 +490,11 @@ mod hlg_tests { let header = crate::read_header(&png).unwrap(); assert_eq!((header.format, header.width, header.height, header.orientation), (crate::Format::Png, 2, 1, 6)); let decoded = crate::decode(&png, crate::DecodeOptions::default()).unwrap(); + assert_eq!((decoded.width, decoded.height), (2, 1)); assert_eq!(decoded.orientation, 6); assert_eq!(decoded.exif.as_deref(), Some(exif.as_slice())); assert_eq!(decoded.xmp.as_deref(), Some(xmp)); + assert_eq!(decoded.to_srgb8().data, [[10, 120, 230, 255], [80, 40, 20, 255]]); } #[test]