mirror of
https://github.com/typst/typst
synced 2025-05-14 17:15:28 +08:00
fix: compress pdf embeds when the type is unknown
This commit is contained in:
parent
ce6975e65a
commit
c8dfb7b9ec
@ -56,7 +56,7 @@ pub(crate) fn embed_files(
|
|||||||
|
|
||||||
fn should_compress(data: &[u8]) -> bool {
|
fn should_compress(data: &[u8]) -> bool {
|
||||||
let Some(ty) = infer::get(data) else {
|
let Some(ty) = infer::get(data) else {
|
||||||
return false;
|
return true;
|
||||||
};
|
};
|
||||||
match ty.matcher_type() {
|
match ty.matcher_type() {
|
||||||
infer::MatcherType::App => true,
|
infer::MatcherType::App => true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user