[okular] [Bug 510662] New: Okular stretches images embedded in PDFs.

Roke Julian Lockhart Beedell bugzilla_noreply at kde.org
Thu Oct 16 00:52:25 BST 2025


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

            Bug ID: 510662
           Summary: Okular stretches images embedded in PDFs.
    Classification: Applications
           Product: okular
      Version First 25.08.2
       Reported In:
          Platform: Fedora RPMs
               URL: https://discuss.kde.org/t/okular-slightly-stretches-so
                    me-pdfs-does-anyone-else-experience-this/31567/5?u=rok
                    ejulianlockhart
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: PDF backend
          Assignee: okular-devel at kde.org
          Reporter: 4wy78uwh at rokejulianlockhart.addy.io
  Target Milestone: ---

# SUMMARY

Okular stretches images embedded in PDFs.

# STEPS TO REPRODUCE

1. Create an HTML file with an embedded JPEG, like
https://gitlab.com/RokeJulianLockhart.SKLHAD/SG5N9Q/-/commit/867ce958336f5b05ec5a94b06e3a33e841330a53
demonstrates.

2. Export that as a PDF, via firefox-143.0.4 or chromium-141.0.7390.65.

3. Invoke it in Okular, and FF and Chromium's PDFJSes.

4. Compare the widths of the images (merely observe how Okular renders it).

# OBSERVED RESULT

In Firefox's PDFJS instance, a JPEG embedded in a PDF when printed-to-PDF from
a webpage with an embedded `img` renders at 446 px at 100 %. In Okular, the
equivalent size is 110 %, where it renders at 450 px.

# EXPECTED RESULT

Both should be the same width. The to-be-attached screenshots shall demonstrate
both that the zoom levels are equivalent, and that in Okular, the image is
noticeably stretched.

# SOFTWARE/OS VERSIONS

> ~~~
> Name         : okular
> Version      : 25.08.2
> Release      : 1.fc42
> Architecture : x86_64
> Install Date : Tue 14 Oct 2025 12:32:19 BST
> Size         : 7369430
> Signature    : RSA/SHA256, Sat 11 Oct 2025 17:03:24 BST, Key ID c8ac4916105ef944
> Source RPM   : okular-25.08.2-1.fc42.src.rpm
> Build Date   : Sat 11 Oct 2025 03:56:51 BST
> Build Host   : buildhw-x86-12.rdu3.fedoraproject.org
> Packager     : Fedora Project
> Vendor       : Fedora Project
> Bug URL      : https://bugz.fedoraproject.org/okular
> ~~~

# ADDITIONAL INFORMATION

This was originally confirmed at
https://discuss.kde.org/t/okular-slightly-stretches-some-pdfs-does-anyone-else-experience-this/31567/5?u=rokejulianlockhart#:~:text=I%20see%20exactly%20446%20px,equivalent%20size%20of%20110%25.

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


More information about the Okular-devel mailing list