mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-16 02:36:49 +00:00
fix(tiff): keep test directory alive while checking borrowed ICC bytes
This commit is contained in:
@@ -126,7 +126,8 @@ fn resolution_tags_and_the_profile() {
|
||||
for model in ColorModel::ALL {
|
||||
let src = if model == ColorModel::Cmyk { vec![0; 64] } else { px.clone() };
|
||||
let file = t::encode_samples(&src, 4, 4, 72.0, &TiffOptions { embed_icc: true, ..opts(model) }).unwrap();
|
||||
let icc = ifd0(&file).bytes(tags::ICC_PROFILE).unwrap();
|
||||
let ifd = ifd0(&file);
|
||||
let icc = ifd.bytes(tags::ICC_PROFILE).unwrap();
|
||||
assert_eq!(&icc[36..40], b"acsp", "{model:?}: an ICC profile");
|
||||
let space: &[u8; 4] = match model {
|
||||
ColorModel::Rgb => b"RGB ",
|
||||
|
||||
Reference in New Issue
Block a user