Bug 253959

Summary: Gwenview offers to "save as" formats that it does not support for writing
Product: [Applications] gwenview Reporter: kavol <kavol>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: adaptee, benni, bugseforuns, mircomir, nate, peter.ruethemann
Priority: NOR Keywords: usability
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description kavol 2010-10-12 13:04:54 UTC
Version:           unspecified (using KDE 4.5.2) 
OS:                Linux

After opening a JPEG2000 image and trying "Save as", in the list of formats to choose there is JPEG-2000 present and it appends the '.jp2' suffix automatically. However, after trying to save the file, I'm told that saving 'image/jp2' is not supported. I think that the formats that are not supported should not be offered within the "Save as" dialogue.

Reproducible: Always
Comment 1 kavol 2010-10-12 13:08:24 UTC
oh, I've just found that the same happens in kolourpaint ... some more generic component than gwenview should be chosen (which one is the one responsible for this?)
Comment 2 Peter Ruethemann 2010-10-13 00:07:39 UTC
I can confirm that. Gwenview also gets very unstable when dealing with JPEG2000.
Comment 3 Jekyll Wu 2012-01-07 03:53:04 UTC
I failed to reproduce the reported problem using KDE SC 4.8 RC2. Feel free to reopen if this still happens in recent version of KDE SC.
Comment 4 kavol 2012-02-05 19:39:41 UTC
(In reply to comment #3)
> I failed to reproduce the reported problem using KDE SC 4.8 RC2.

unfortunately, I'm getting the same problem with 4.8.0 too

JP2 now works, but I get "Unsupported image format" trying MNG
Comment 5 Nate Graham 2017-09-10 04:00:23 UTC
Since this affects more than just Gwenview, moving to KIO.
Comment 6 Nate Graham 2018-04-17 20:59:04 UTC
In retrospect, and with a few extra months' experience under my belt, this probably needs to go back to Gwenview:  KIO can't know what formats the app supports; it's up to the app to signal that. So when the file's current MIME type is not supported for writing, Gwenview should make sure not to include that MIME type in the list of supported MIME types that the Save As dialog presents to the user.
Comment 7 A Linux User 2025-09-04 12:18:23 UTC
Thank you for the bug report. Unfortunately we were not able to get to it yet. Can we ask you to please check if this is still an issue with Gwenview 25.08.0 (the latest released version)?
Comment 8 Mirco Miranda 2025-10-07 05:52:12 UTC
(In reply to A Linux User from comment #7)
> Thank you for the bug report. Unfortunately we were not able to get to it
> yet. Can we ask you to please check if this is still an issue with Gwenview
> 25.08.0 (the latest released version)?

We added JP2 plugin based on OpenJPG in KImageFormat in late 2024. I tested GwenView today (Debian unstable) and it loads and save JP2 without problems.