From c240047e0538f72a572fdf16f5143edf11bf1894 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Vasconcellos?= Date: Fri, 16 Aug 2024 21:19:19 +0000 Subject: [PATCH] Fix pdf thumbnails (#2666) --- Cargo.lock | 5 ++--- crates/images/Cargo.toml | 13 +++++++++---- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 49476616d..b32a3e8c2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6168,8 +6168,7 @@ checksum = "8835116a5c179084a830efb3adc117ab007512b535bc1a21c991d3b32a6b44dd" [[package]] name = "pdfium-render" version = "0.8.24" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9cf21aa9bd11aa175e8755e0dbc613affe885e149c4b3ee4ac6d2c183260e727" +source = "git+https://github.com/HeavenVolkoff/pdfium-render.git?rev=dd8118c068#dd8118c0681dcc6a2824b84b67d7537ebd4ea1f0" dependencies = [ "bindgen", "bitflags 2.6.0", @@ -6179,7 +6178,7 @@ dependencies = [ "console_error_panic_hook", "console_log", "image", - "itertools 0.13.0", + "itertools 0.10.5", "js-sys", "libloading 0.8.5", "log", diff --git a/crates/images/Cargo.toml b/crates/images/Cargo.toml index fa9921a9d..227f658f8 100644 --- a/crates/images/Cargo.toml +++ b/crates/images/Cargo.toml @@ -23,7 +23,12 @@ tracing = { workspace = true } # Specific Images dependencies bincode = { version = "=2.0.0-rc.3", features = ["alloc", "derive"], optional = true } # Disable defaults for libheif* to avoid bindgen and use pre-compiled headers -libheif-rs = { version = "1.0", default-features = false, optional = true } -libheif-sys = { version = "2.1", default-features = false, optional = true } -pdfium-render = { version = "0.8.24", features = ["image", "sync", "thread_safe"] } -resvg = "0.43.0" +libheif-rs = { version = "1.0", default-features = false, optional = true } +libheif-sys = { version = "2.1", default-features = false, optional = true } +resvg = "0.43.0" + +[dependencies.pdfium-render] +default-features = false +features = ["image", "pdfium_6259", "sync", "thread_safe"] +git = "https://github.com/HeavenVolkoff/pdfium-render.git" +rev = "dd8118c068"