Bug 208907 - Rename Images - file extension in uppercase
Summary: Rename Images - file extension in uppercase
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: AdvancedRename-file (show other bugs)
Version: 1.0.0
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-29 22:37 UTC by Andi Clemens
Modified: 2022-01-31 21:57 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andi Clemens 2009-09-29 22:37:36 UTC
+++ This bug was initially created as a clone of Bug #131936 +++

Version:           0.1.2 (using KDE 3.5.2, Gentoo)
Compiler:          gcc version 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9)
OS:                Linux (i686) release 2.6.17-gentoo-r4

For renaming/overwriting purposes it would be great if the file extension could be switched between lowercase and uppercase e.g. you can rename a file like "a245.jpg" to "b245.JPG".
Comment 1 Andi Clemens 2009-09-29 22:38:13 UTC
I have cloned this wish for the AdvancedRename utility...
Comment 2 Andi Clemens 2009-11-06 17:44:29 UTC
SVN commit 1045697 by aclemens:

Allow changing the extension with modifiers, too.
AdvancedRename will now return the full name, so I had to change renaming
methods in AlbumUI, CameraUI and BQM.

You can use the [ext] token for this task. If prepended with a '.' character, it
will be used as the new file extension.

Examples (filename: "myfile0001.jpg"):

[ext]_aaa          => jpg_aaa.jpg
[ext]_aaa[ext]     => jpg_aaajpg.jpg
[ext]_aaa[ext]&    => jpg_aaaJPG.jpg
[ext]_aaa.[ext]&   => jpg_aaa.JPG
[ext]_aaa.[ext]&xx => jpg_aaa.JPGxx
[file][ext]&      => myfile0001JPG.jpg
[file].[ext]&      => myfile0001.JPG

BUG:208907

 M  +1 -4      digikam/imageviewutilities.cpp  
 M  +72 -65    tests/advancedrenametest.cpp  
 M  +33 -14    utilities/advancedrename/advancedrenamedialog.cpp  
 M  +5 -2      utilities/advancedrename/common/parseinformation.h  
 M  +15 -4     utilities/advancedrename/common/parser.cpp  
 M  +1 -1      utilities/advancedrename/common/subparser.cpp  
 M  +2 -2      utilities/advancedrename/common/subparser.h  
 M  +1 -1      utilities/advancedrename/parsers/subparsers/cameranameparser.cpp  
 M  +1 -1      utilities/advancedrename/parsers/subparsers/cameranameparser.h  
 M  +1 -1      utilities/advancedrename/parsers/subparsers/dateparser.cpp  
 M  +1 -1      utilities/advancedrename/parsers/subparsers/dateparser.h  
 M  +1 -1      utilities/advancedrename/parsers/subparsers/directorynameparser.cpp  
 M  +1 -1      utilities/advancedrename/parsers/subparsers/directorynameparser.h  
 M  +10 -5     utilities/advancedrename/parsers/subparsers/filepropertiesparser.cpp  
 M  +1 -1      utilities/advancedrename/parsers/subparsers/filepropertiesparser.h  
 M  +2 -2      utilities/advancedrename/parsers/subparsers/metadataparser.cpp  
 M  +2 -2      utilities/advancedrename/parsers/subparsers/metadataparser.h  
 M  +1 -1      utilities/advancedrename/parsers/subparsers/sequencenumberparser.cpp  
 M  +1 -1      utilities/advancedrename/parsers/subparsers/sequencenumberparser.h  
 M  +2 -11     utilities/cameragui/cameraiconview.cpp  
 M  +1 -3      utilities/cameragui/renamecustomizer.cpp  
 M  +1 -1      utilities/cameragui/renamecustomizer.h  
 M  +10 -9     utilities/queuemanager/queuelist.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1045697