Bug 490248 - (Vector?) image rendering bugged
Summary: (Vector?) image rendering bugged
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 24.08.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Jummy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-13 22:00 UTC by Jummy
Modified: 2024-11-14 20:00 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Just a pdf from the web, some simple statistics with vector images. (1.30 MB, application/pdf)
2024-07-13 22:00 UTC, Jummy
Details
screenshot of the bug (112.10 KB, image/png)
2024-10-19 14:10 UTC, Jummy
Details
screenshot of how it has to look like (okula v23.08) (104.96 KB, image/png)
2024-10-19 14:17 UTC, Jummy
Details
Okular 24.05.2 - document view vs print preview (150.52 KB, image/jpeg)
2024-11-14 09:29 UTC, Schmitty
Details
Sample for vector graphics rendering bug (386.30 KB, application/pdf)
2024-11-14 09:32 UTC, Schmitty
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jummy 2024-07-13 22:00:59 UTC
Created attachment 171644 [details]
Just a pdf from the web, some simple statistics with vector images.

***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
Vector images in PDFs are displayed broken. When I am talking about vector images, I am referring to endless zoomable images which won't get blurry when even zoomed at 1000% for example. Additionally, awkwardly this doesn't seem to affect all kinds of vector images, so it might take a bit to find a PDF where this bug happens.

STEPS TO REPRODUCE
- No steps needed to reproduce. Just the right PDF needed.

OBSERVED RESULT
Blurry and/or unsharp and wrong pixelated edges

EXPECTED RESULT
Issueless (vector) image display

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
I left Software/Os Versipons blank, since this bug is independent from OS. I went back to Okular v23.08 and everything was displayed properly. So, this is a bug of v24 specifically. I will add a PDF where this bug occured, as an example.
Comment 1 Jummy 2024-08-24 13:29:14 UTC
Hello. This issue unfortunately still exists and makes it impossible to work with many PDFs. Unfortunately I can't change the priority level of this issue anymore (I would say its level is high and not normal anymore). Please check this.
Comment 2 Albert Astals Cid 2024-09-12 11:04:43 UTC
Can you attach a screenshot showing the problem, it looks good for me.
Comment 3 Bug Janitor Service 2024-09-27 03:47:20 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2024-10-12 03:47:58 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.
Comment 5 Jummy 2024-10-19 14:10:46 UTC
Created attachment 175023 [details]
screenshot of the bug

I added a screenshot of the bug. Though, the previously added PDF file should be a better source to reproduce the issue.
Comment 6 Jummy 2024-10-19 14:17:10 UTC
Created attachment 175024 [details]
screenshot of how it has to look like (okula v23.08)

hey again. i now also added a screenshot taken from okular v.23.08, how it actually should look like, called "2.png".

the buggy version from okular v24 is called "1.png".

both were taken at a zoom of 200% in okular.
Comment 7 Schmitty 2024-11-14 09:29:05 UTC
Created attachment 175807 [details]
Okular 24.05.2 - document view vs print preview

You can easily see the bug when comparing the regular Okular view of the document with the Print Preview.
Comment 8 Schmitty 2024-11-14 09:30:02 UTC
I see the same bug in Okular 24.05.2 on Windows. I think this did not happen in previous Okular versions, 
see https://www.reddit.com/r/kde/comments/1cn4bvj/okular_v24_vector_image_rendering_bug_windows_only/.
You can easily see the bug when comparing the regular Okular view of the document with the Print Preview,
see attached image "Okular 24.05.2 - document view vs print preview.jpg"
Comment 9 Schmitty 2024-11-14 09:32:46 UTC
Created attachment 175808 [details]
Sample for vector graphics rendering bug

See the first page, the picture is blurred and not rendered correctly.
Comment 10 Will Sierzputowski 2024-11-14 16:10:35 UTC
(In reply to Schmitty from comment #9)
> Created attachment 175808 [details]
> Sample for vector graphics rendering bug
> 
> See the first page, the picture is blurred and not rendered correctly.

On Windows 11, with Okular 24.11.70 I cannot duplicate the behavior seen in your screenshots. Both your PDF, and the original reporters, render clear graphics at all zoom levels. Does updating Okular fix the issue?
Comment 11 Schmitty 2024-11-14 16:21:54 UTC
I've installed Okular using Chocolatey, their latest version is Okular 24.5. updated on Oct. 9th.
I'm also not able to download a possibly newer version as https://okular.kde.org/de/download/ says: "The Microsoft Store is the recommended place to install Okular,...".
So I'm glad that the bug is gone and hope to have a corrected Okular soon.
Thanks!
Comment 12 Will Sierzputowski 2024-11-14 16:42:20 UTC
It looks like the Windows store version is behind and was reported in another bug report. 

You can pull compiled binaries from: https://cdn.kde.org/ci-builds/. Okular is found under graphics. You just need to install the .exe file as normal. It is annoying that the store version is not updated. 

If you can check if the newer version resolves this issue that would be great. There is always the possibility this is strange behavior of something else, graphics drivers, etc.
Comment 13 Schmitty 2024-11-14 18:56:45 UTC
OK, I installed 24.11.80 and, yes, the bug is gone.
But I get an error message at Okular startup:

---------------------------
GpgME not installed correctly
---------------------------
gpgme-w32spawn.exe was not found in the detected installation directory of GpgME
	"C:\Program Files\Okular\bin"
Crypto operations will not work.
If you see this it indicates a problem with your installation.
Please report the problem to your distributor of GpgME.
Developer's Note: The install dir can be manually set with: gpgme_set_global_flag
---------------------------
OK   
---------------------------

File gpgme-w32spawn.exe is actually missing, but was present in the previous installation in 
  Okular\bin\gpgme-w32spawn.exe
  Okular\libexec\gpgme-w32spawn.exe
Maybe I just wait for Chocolatey to cleanup the installation once they released it.
Comment 14 Schmitty 2024-11-14 19:23:13 UTC
I copied the two files from my backup and the error message is gone.
Comment 15 Will Sierzputowski 2024-11-14 20:00:03 UTC
Thanks for checking! I'm going to close this bug as the problem is solved on the latest version.

Feel free to open a new one with the missing files if needed (you or someone else who experiences the same problem). I understand the outdated windows version is also an issue, but is listed in bug 495719.