Bug 176737

Summary: Inconsistent file extensions (jpg and jpeg, tif and tiff ...)
Product: [Frameworks and Libraries] kdelibs Reporter: Andreas Weigl <kde>
Component: kimgioAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED FIXED    
Severity: wishlist CC: caulier.gilles, drankinatty, faure, mailinglist
Priority: NOR    
Version: SVN   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: patch to fix order of JPEG and TIFF extension (3 characters based by default)

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.