Bug 176737 - Inconsistent file extensions (jpg and jpeg, tif and tiff ...)
Summary: Inconsistent file extensions (jpg and jpeg, tif and tiff ...)
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: kimgio (show other bugs)
Version: SVN
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
: 206303 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-12-02 20:11 UTC by Andreas Weigl
Modified: 2018-08-12 11:22 UTC (History)
4 users (show)

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


Attachments
patch to fix order of JPEG and TIFF extension (3 characters based by default) (724 bytes, patch)
2008-12-03 10:30 UTC, caulier.gilles
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Weigl 2008-12-02 20:11:49 UTC
Version:           0.10 from svn (using KDE 4.1.3)
OS:                Linux
Installed from:    Ubuntu Packages

I just did a svn checkout of 0.10. So I have a quite current version

When I do a batch raw conversion to JPEG, the file extension is .jpg.
If I edit a RAW image and do a "save as" JPEG, I get .jpeg as default extension (I can change it, but default is jpeg).

It's the same with TIFF.

It would be good if everything uses the same extension.
Comment 1 caulier.gilles 2008-12-03 08:44:12 UTC
The JPEG or TIFF image file extension (.jpeg and .tiff) are hardcoded to KDELibs (i suspect desktop files).

Gilles Caulier

Comment 2 caulier.gilles 2008-12-03 09:03:50 UTC
I confirm !

The problem come from desktop files from KDElibs. Look the order of extension of "X-KDE-ImageFormat" section:

http://websvn.kde.org/trunk/KDE/kdelibs/kimgio/jpeg.desktop?view=markup

http://websvn.kde.org/trunk/KDE/kdelibs/kimgio/tiff.desktop?view=markup

Gilles Caulier
Comment 3 caulier.gilles 2008-12-03 10:30:43 UTC
Created attachment 29008 [details]
patch to fix order of JPEG and TIFF extension (3 characters based by default)
Comment 4 Joe Biden 2009-05-20 21:46:17 UTC
At the VERY least, this needs to be patched to not touch the incoming filename, as it stands, it tries to change .jpg files to .jpeg files. This is counter-intuitive.

If some person is so moist over forcing .jpeg after .jpg has been in widespread use for, oh, 2 decades, dandy, but don't change my damn files!
Comment 5 Christoph Feck 2010-08-31 05:14:14 UTC
*** Bug 206303 has been marked as a duplicate of this bug. ***
Comment 6 Christoph Feck 2010-08-31 05:15:10 UTC
*** Bug 184443 has been marked as a duplicate of this bug. ***
Comment 7 David Faure 2010-09-01 22:37:37 UTC
Comment #4 seems to indicate that the bug is not in the kdelibs desktop files, but rather in the code that uses them? Replacing an extension with another, when both are valid for the given mimetype, sounds wrong indeed.
Comment 8 David Faure 2018-08-12 11:22:42 UTC
Nowadays (Qt5/KF5), the default extension for a mimetype comes from shared-mime-info (from freedesktop), not from kimgio (which doesn't really exist anymore).

In shared-mime-info the default for JPEG is *.jpeg and the default for TIFF is *.tif

OK, I have now fixed it in shared-mime-info (commit 2d7bea2), the default extension for JPEG is now *.jpg.