Skip to content

Commit 222c264

Browse files
author
HeroicKatora
authored
Merge pull request #224 from vstroebel/missing_ct
Assume CMYK if App14 marker is missing
2 parents 3f85d49 + 97b6c5d commit 222c264

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/decoder.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,9 +1229,10 @@ fn choose_color_convert_func(
12291229
match color_transform {
12301230
Some(AdobeColorTransform::Unknown) => Ok(color_convert_line_cmyk),
12311231
Some(_) => Ok(color_convert_line_ycck),
1232-
None => Err(Error::Format(
1233-
"4 components without Adobe APP14 metadata to indicate color space".to_owned(),
1234-
)),
1232+
None => {
1233+
// Assume CMYK because no APP14 marker was found
1234+
Ok(color_convert_line_cmyk)
1235+
},
12351236
}
12361237
}
12371238
_ => panic!(),

0 commit comments

Comments
 (0)