mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-08 09:07:13 +00:00
Fix: Harden PDF thumbnail encoding and align CI and docs
Pillow raises DecompressionBombError, which is not an OSError, so an enormous render from the unknown-geometry fallback DPI skipped the default thumbnail fallback. It is now converted to a ParseError like other encoding failures, with a test covering both error types. CI did not install qpdf, which the new thumbnail repair tests need, so it is added to the backend package list. The setup docs now list poppler-utils as used for thumbnail generation and no longer claim PDF thumbnails fall back to Ghostscript when the ImageMagick PDF policy is not enabled.
This commit is contained in:
1 parent
26baf52a78
commit
2136659e2b
4 files changed
+34
-5
No files matched your search
@@ -111,7 +111,7 @@ jobs:
|
||||
timeout-minutes: 12
|
||||
uses: $/.github/actions/apt-install
|
||||
with:
|
||||
packages: unpaper tesseract-ocr imagemagick ghostscript poppler-utils
|
||||
packages: unpaper tesseract-ocr imagemagick ghostscript poppler-utils qpdf
|
||||
- name: Configure ImageMagick
|
||||
run: |
|
||||
sudo cp docker/rootfs/etc/ImageMagick-6/paperless-policy.xml /etc/ImageMagick-7/policy.xml
|
||||
|
||||
Reference in new issue
Block a user