Bug 497352 - Gwenview does not open image/x-portable-pixmap (PPM) format images if they have the generic .pnm extension
Summary: Gwenview does not open image/x-portable-pixmap (PPM) format images if they ha...
Status: CONFIRMED
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 24.08.1
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-12 04:18 UTC by dE
Modified: 2025-02-10 13:37 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dE 2024-12-12 04:18:50 UTC
In KDE 5 gwenview supported the pnm format which is uncompressed. Now it says 'Loading meta information failed.'.

I tried it with the latest neon.
Comment 1 John Kizer 2024-12-20 16:38:01 UTC
Hi - can you please provide the specific steps needed to reproduce this issue? Please take a look at https://community.kde.org/Get_Involved/Issue_Reporting#Steps_to_Reproduce for reference on how to put together an effective Bugzilla ticket.

In addition to that, if you are able to attach an example file that you're not able to open on your device, that may help others try to reproduce.

Thanks!
Comment 2 Bug Janitor Service 2025-01-04 03:47:31 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 3 Bug Janitor Service 2025-01-19 03:47:42 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.
Comment 4 dE 2025-01-22 11:15:01 UTC
(In reply to John Kizer from comment #1)
> Hi - can you please provide the specific steps needed to reproduce this
> issue? Please take a look at
> https://community.kde.org/Get_Involved/Issue_Reporting#Steps_to_Reproduce
> for reference on how to put together an effective Bugzilla ticket.
> 
> In addition to that, if you are able to attach an example file that you're
> not able to open on your device, that may help others try to reproduce.
> 
> Thanks!

Download the latest KDE neon live DVD and boot it.
Download a pnm image from https://filesamples.com/samples/image/pnm/sample_640%C3%97426.pnm
Try to open the downloaded PNM file using the pre-installed gwenview.
Comment 5 John Kizer 2025-01-22 17:49:01 UTC
That's a pretty picture! I can reproduce that Gwenview will not load the image with a .pnm extension.

If the image is renamed to the format's specific extension of .ppm, or if the extension is removed entirely, the image is still recognized and loaded successfully. Re-titling based on that. Thanks!

For what it's worth: kmimetypefinder, with no parameters, reports .pnm as image/x-portable-anymap - which is not technically a specific format itself, but a generic catch-all for the PBM/PGM/PPM family. If Gwenview is using kmimetypefinder when being asked to open a file, then I don't know if this bug should be in Gwenview knowing to ask for --content, or in kmimetypefinder not using the file content by default for formats like that?
Comment 6 dE 2025-02-10 13:37:20 UTC
Thanks for sharing the workaround.