Bug 433176 - Unsupported Image Format Error on Save As JFIF
Summary: Unsupported Image Format Error on Save As JFIF
Status: RESOLVED DUPLICATE of bug 439519
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 20.12.2
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-18 15:16 UTC by Greg Lepore
Modified: 2022-02-01 12:20 UTC (History)
1 user (show)

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


Attachments
File Save Dialog showing .jfif as extension for JPEG (117.57 KB, image/png)
2022-02-01 12:04 UTC, Greg Lepore
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Lepore 2021-02-18 15:16:23 UTC
SUMMARY
Attempting to save an existing TIFF image as JPEG (JFIF) results in an error: "Unsupported Image Format" and "Saving ‘1920_01_23_0024.jfif’ failed:
Unsupported image format".

Saving to other formats seems to be working correctly.

Operating System: KDE neon 5.21
KDE Plasma Version: 5.21.0
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2
Kernel Version: 5.4.0-65-generic
OS Type: 64-bit
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 2600 Six-Core Processor
Memory: 15.6 GiB of RAM
Graphics Processor: GeForce GT 1030/PCIe/SSE2
Comment 1 Méven Car 2022-01-31 17:25:00 UTC
Can you  share a tiff file to test with ?
Comment 2 Greg Lepore 2022-01-31 17:37:01 UTC
(In reply to Méven Car from comment #1)
> Can you  share a tiff file to test with ?

Sorry if I wasn't clear in my report, it happens on every and any files, regardless of original format, whether a screenshot from Spectacle, a gif from the web, or a picture from a camera phone. So it's not something related to the specific file.
Comment 3 Méven Car 2022-02-01 09:06:47 UTC
(In reply to Greg Lepore from comment #2)
> (In reply to Méven Car from comment #1)
> > Can you  share a tiff file to test with ?
> 
> Sorry if I wasn't clear in my report, it happens on every and any files,
> regardless of original format, whether a screenshot from Spectacle, a gif
> from the web, or a picture from a camera phone. So it's not something
> related to the specific file.

JPEG extension is jpg or jjpeg not jfif.
When you choose the output name I guess Qt or Gwenview tries to find the image format based on the file extension, but this is not a image file extension AFAICT so it fails logically.
I was able to reproduce the issue trying to save a png to a .jfif file, it is expected, although the error could be more explicit.
Comment 4 Greg Lepore 2022-02-01 12:03:48 UTC
When I select "JPEG Image" from the dropdown of "File type" the "Automatically select filename extension" says "(.jfif)". No where do I say use .jfif. Manually changing the extension in the Name box does not allow me to save the image as a .jpg or .jpeg.

See attachment.

There is certainly a bug here, resetting to Reopened.
Comment 5 Greg Lepore 2022-02-01 12:04:17 UTC
Created attachment 146123 [details]
File Save Dialog showing .jfif as extension for JPEG
Comment 6 Greg Lepore 2022-02-01 12:20:49 UTC
Duplicate report at:

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

Workaround at:

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

I can confirm the workaround works for me. It appears the problem is more related to the Applications->File Association settings.

*** This bug has been marked as a duplicate of bug 439519 ***