[okular] [Bug 370382] Using non-default size for custom stamp pixelates the stamp
Sune Vuorela
bugzilla_noreply at kde.org
Thu Jan 1 19:04:54 GMT 2026
https://bugs.kde.org/show_bug.cgi?id=370382
Sune Vuorela <sune at vuorela.dk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Latest Commit|https://invent.kde.org/grap |https://invent.kde.org/grap
|hics/okular/-/commit/554b4c |hics/okular/-/commit/a5b76f
|12aecd5c84c9d47b29de091af1a |6fac19937101bed5c769b8c1b17
|fe8e346 |336bd2d
--- Comment #21 from Sune Vuorela <sune at vuorela.dk> ---
Git commit a5b76f6fac19937101bed5c769b8c1b17336bd2d by Sune Vuorela.
Committed on 01/01/2026 at 18:52.
Pushed by sune into branch 'release/25.12'.
Fix extreme downscaling of custom stamps
Fix extreme downscaling of custom stamps: Use native resolution for raster and
High-DPI for SVG
The current implementation calculates the stamp image size based on the PDF
page geometry in Points (1/72 inch). This forces `loadStamp` to rasterize or
downscale the custom stamp image to 72 DPI.
This commit improves `setPopplerStampAnnotationCustomImage`:
1. Uses native resolution for raster images (PNG/JPG) to prevent downscaling.
2. Uses 288 DPI (4x scale) for SVGs to ensure crisp rendering.
3. Adds a 4096px clamp for safety.
(cherry picked from commit 554b4c12aecd5c84c9d47b29de091af1afe8e346)
5aac8912 Fix extreme downscaling of custom stamps
4c1dbaa9 Ensure stamp file still exists to avoid slow QImageReader searching
Co-authored-by: Cody Neiman <neiman at cody.to>
M +55 -3 generators/poppler/annots.cpp
https://invent.kde.org/graphics/okular/-/commit/a5b76f6fac19937101bed5c769b8c1b17336bd2d
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Okular-devel
mailing list