Skip to content

Commit 0cc6e78

Browse files
authored
Fix CI tests (#520)
Update image reader
1 parent 3a9e590 commit 0cc6e78

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

make_test_images/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ c2pa = { path = "../sdk", default-features = false, features = [
1313
"unstable_api",
1414
] }
1515
env_logger = "0.11"
16-
log = "0.4.8"
17-
image = { version = "0.25.1", default-features = false, features = [
16+
log = "0.4.8"
17+
image = { version = "0.25.2", default-features = false, features = [
1818
"jpeg",
1919
"png",
2020
] }

make_test_images/src/make_thumbnail.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use std::io::{Read, Seek};
1515

1616
use anyhow::{Error, Result};
17-
use image::{io::Reader, ImageFormat};
17+
use image::{ImageFormat, ImageReader};
1818

1919
// max edge size allowed in pixels for thumbnail creation
2020
const THUMBNAIL_LONGEST_EDGE: u32 = 1024;
@@ -29,7 +29,7 @@ pub fn make_thumbnail_from_stream<R: Read + Seek + ?Sized>(
2929
.or_else(|| ImageFormat::from_mime_type(format))
3030
.ok_or(Error::msg(format!("format not supported {format}")))?;
3131

32-
let reader = Reader::with_format(std::io::BufReader::new(stream), format);
32+
let reader = ImageReader::with_format(std::io::BufReader::new(stream), format);
3333
let mut img = reader.decode()?;
3434

3535
let longest_edge = THUMBNAIL_LONGEST_EDGE;

0 commit comments

Comments
 (0)