[okular] [Bug 370382] Using non-default size for custom stamp pixelates the stamp

Jason A. Donenfeld bugzilla_noreply at kde.org
Tue Sep 23 18:38:41 BST 2025


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

--- Comment #13 from Jason A. Donenfeld <Jason at zx2c4.com> ---
This garbage patch "fixes" the problem but is obviously incorrect:

diff --git a/core/annotations.cpp b/core/annotations.cpp
index 21c01b2be..f83249f73 100644
--- a/core/annotations.cpp
+++ b/core/annotations.cpp
@@ -212,7 +212,7 @@ QPixmap AnnotationUtils::loadStamp(const QString
&nameOrPath, QSize size, Qt::As

         QSize imageSize = reader.size();
         if (!reader.size().isNull()) {
-            reader.setScaledSize(imageSize.scaled(size, keepAspectRatio));
+            reader.setScaledSize(imageSize.scaled(size * 8, keepAspectRatio));
         }
         auto pix = QPixmap::fromImageReader(&reader);
         if (!pix.isNull()) {

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


More information about the Okular-devel mailing list