https://bugs.kde.org/show_bug.cgi?id=370382

Sune Vuorela <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|https://invent.kde.org/grap |https://invent.kde.org/grap
                   |hics/okular/-/commit/c76cb7 |hics/okular/-/commit/554b4c
                   |a9e7deced85fb5575e2d992fba8 |12aecd5c84c9d47b29de091af1a
                   |3586599                     |fe8e346

--- Comment #20 from Sune Vuorela <[email protected]> ---
Git commit 554b4c12aecd5c84c9d47b29de091af1afe8e346 by Sune Vuorela, on behalf
of Cody Neiman.
Committed on 16/12/2025 at 10:12.
Pushed by sune into branch 'master'.

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.

M  +55   -3    generators/poppler/annots.cpp

https://invent.kde.org/graphics/okular/-/commit/554b4c12aecd5c84c9d47b29de091af1afe8e346

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to