mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-26 19:19:10 -06:00
Signed-off-by: Chiranjeevi U <244287281+chiranjeevi-max@users.noreply.github.com>
This commit is contained in:
@@ -152,7 +152,7 @@ mod tests {
|
||||
let image = SignatureImage::from_bytes(&jpeg.into_inner()).unwrap();
|
||||
assert_eq!(image.size(), [60, 20]);
|
||||
assert!(image.bytes().starts_with(b"\x89PNG\r\n\x1a\n"));
|
||||
assert!(image.rgba().chunks_exact(4).all(|p| p[3] == 255));
|
||||
assert!(image.rgba().as_chunks::<4>().0.iter().all(|p| p[3] == 255));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user