Summary: | Inconsistent file extensions (jpg and jpeg, tif and tiff ...) | ||
---|---|---|---|
Product: | [Unmaintained] kdelibs | Reporter: | Andreas Weigl <kde> |
Component: | kimgio | Assignee: | 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: | ||
Sentry Crash Report: | |||
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
The JPEG or TIFF image file extension (.jpeg and .tiff) are hardcoded to KDELibs (i suspect desktop files). Gilles Caulier 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 Created attachment 29008 [details]
patch to fix order of JPEG and TIFF extension (3 characters based by default)
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! *** Bug 206303 has been marked as a duplicate of this bug. *** *** Bug 184443 has been marked as a duplicate of this bug. *** 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. 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. |