Jump to content

Digikam/Renaming Photos: Difference between revisions

From KDE UserBase Wiki
Annew (talk | contribs)
Reproduced with permission
 
Annew (talk | contribs)
Marked this version for translation
Line 1: Line 1:
<languages />
<languages />
<translate>
<translate>
==Renaming Photos with digiKam==
==Renaming Photos with digiKam== <!--T:1-->


<!--T:2-->
This article originally appeared in [http://scribblesandsnaps.wordpress.com/2010/06/03/renaming-photos-with-digikam/ Scribbles and Snaps] and is reproduced with the kind permission of Dmitri Popov.
This article originally appeared in [http://scribblesandsnaps.wordpress.com/2010/06/03/renaming-photos-with-digikam/ Scribbles and Snaps] and is reproduced with the kind permission of Dmitri Popov.


<!--T:3-->
Giving your photos meaningful names makes it significantly easier to keep tabs on them. Of course, renaming each and every photo by hand is not particularly practical, especially if you take dozens or even hundreds of photos each day. This is when '''digiKam'''’s <menuchoice>Rename</menuchoice> feature can come in rather handy. You can use it to define rather advanced renaming rules and apply them to multiple photos in one fell swoop.
Giving your photos meaningful names makes it significantly easier to keep tabs on them. Of course, renaming each and every photo by hand is not particularly practical, especially if you take dozens or even hundreds of photos each day. This is when '''digiKam'''’s <menuchoice>Rename</menuchoice> feature can come in rather handy. You can use it to define rather advanced renaming rules and apply them to multiple photos in one fell swoop.


<!--T:4-->
[[Image:Digikam_rename.png|thumb|300px|center]]
[[Image:Digikam_rename.png|thumb|300px|center]]


<!--T:5-->
To put the <menuchoice>Rename</menuchoice> tool to practical use, select the photos you want to rename and press the <menuchoice>Rename</menuchoice> button in the main toolbar (you can also choose <menuchoice>Image</menuchoice> -> <menuchoice>Rename</menuchoice> or press <keycap>F2</keycap>). The <menuchoice>Rename</menuchoice> dialog window offers a vast range of renaming options which allow you to create complex renaming rules. But you might want to start with a simple rule that renames photos using the date and time data. To do this, press the <menuchoice>Date & Time</menuchoice> button and select <menuchoice>Image</menuchoice> from the <menuchoice>Source</menuchoice> drop-down list. This will pull the date and time info from the photo’s metadata.
To put the <menuchoice>Rename</menuchoice> tool to practical use, select the photos you want to rename and press the <menuchoice>Rename</menuchoice> button in the main toolbar (you can also choose <menuchoice>Image</menuchoice> -> <menuchoice>Rename</menuchoice> or press <keycap>F2</keycap>). The <menuchoice>Rename</menuchoice> dialog window offers a vast range of renaming options which allow you to create complex renaming rules. But you might want to start with a simple rule that renames photos using the date and time data. To do this, press the <menuchoice>Date & Time</menuchoice> button and select <menuchoice>Image</menuchoice> from the <menuchoice>Source</menuchoice> drop-down list. This will pull the date and time info from the photo’s metadata.


<!--T:6-->
Next, you have to specify a date/time format by selecting the appropriate item from the <menuchoice>Format</menuchoice> drop-down list. If none of the available formatting options satisfy you, select the <menuchoice>Custom</menuchoice> item, which lets you construct the formatting string manually. For example, the {{Input|1=yyyyMMdd-hhmmss}}
Next, you have to specify a date/time format by selecting the appropriate item from the <menuchoice>Format</menuchoice> drop-down list. If none of the available formatting options satisfy you, select the <menuchoice>Custom</menuchoice> item, which lets you construct the formatting string manually. For example, the {{Input|1=yyyyMMdd-hhmmss}}
formatting string produces file names like {{Output|1=20100531-173501}}
formatting string produces file names like {{Output|1=20100531-173501}}
Line 19: Line 24:
The clever part is that you can immediately see the result of the renaming string right below the <menuchoice>Format</menuchoice> field. For a full list of available formatting options, check the official Qt documentation.
The clever part is that you can immediately see the result of the renaming string right below the <menuchoice>Format</menuchoice> field. For a full list of available formatting options, check the official Qt documentation.


<!--T:7-->
Besides date and time, the <menuchoice>Rename</menuchoice> dialog window offers a few other useful options. The <menuchoice>Camera</menuchoice> button, for example, allows you to add the camera model to the file name. This can be useful if you are using several cameras and you want to quickly identify photos taken with a specific camera. The <menuchoice>Metadata</menuchoice> button gives you access to EXIF and other photo metadata you can use in renaming rules.
Besides date and time, the <menuchoice>Rename</menuchoice> dialog window offers a few other useful options. The <menuchoice>Camera</menuchoice> button, for example, allows you to add the camera model to the file name. This can be useful if you are using several cameras and you want to quickly identify photos taken with a specific camera. The <menuchoice>Metadata</menuchoice> button gives you access to EXIF and other photo metadata you can use in renaming rules.


<!--T:8-->
[[Image:Digikam_metadata.png|thumb|300px|center]]
[[Image:Digikam_metadata.png|thumb|300px|center]]


<!--T:9-->
Next to the field where you enter the renaming rule, there is a button that lets you specify so-called modifiers or actions that will be applied to the file names during the renaming operation. For example, using the <menuchoice>Change Case</menuchoice> modifiers, you can convert all file names to lower or uppercase, or capitalize the first letter. Here is a quick overview of other useful modifiers:
Next to the field where you enter the renaming rule, there is a button that lets you specify so-called modifiers or actions that will be applied to the file names during the renaming operation. For example, using the <menuchoice>Change Case</menuchoice> modifiers, you can convert all file names to lower or uppercase, or capitalize the first letter. Here is a quick overview of other useful modifiers:


<!--T:10-->
<menuchoice>Trimmed</menuchoice> – Removes leading, trailing, and extra spaces.
<menuchoice>Trimmed</menuchoice> – Removes leading, trailing, and extra spaces.
<menuchoice>Unique</menuchoice> – Adds unique numerical values to identical file names.
<menuchoice>Unique</menuchoice> – Adds unique numerical values to identical file names.
Line 30: Line 39:
<menuchoice>Range</menuchoice> – Lets you specify a specific fragment of the file name for the renaming rule. For example, the ''{5-}'' modifier in the ''[file]{5-}'' rule removes the first four characters of the file name, so ''IMAG0113.jpg'', ''IMAG0351.jpg'', and ''IMAG0573.jpg'' are renamed to ''0113.jpg'', ''0351.jpg'', and ''0573.jpg''
<menuchoice>Range</menuchoice> – Lets you specify a specific fragment of the file name for the renaming rule. For example, the ''{5-}'' modifier in the ''[file]{5-}'' rule removes the first four characters of the file name, so ''IMAG0113.jpg'', ''IMAG0351.jpg'', and ''IMAG0573.jpg'' are renamed to ''0113.jpg'', ''0351.jpg'', and ''0573.jpg''


<!--T:11-->
While '''digiKam''' offers a wide range of other features that can help you to keep tabs on your photos, it’s worth experimenting with the <menuchoice>Rename</menuchoice> tool. This way, you can quickly locate or identify specific photos even when '''digiKam''' is not running.
While '''digiKam''' offers a wide range of other features that can help you to keep tabs on your photos, it’s worth experimenting with the <menuchoice>Rename</menuchoice> tool. This way, you can quickly locate or identify specific photos even when '''digiKam''' is not running.


<!--T:12-->
[[Category:Graphics]]
[[Category:Graphics]]
[[Category:Photography]]
[[Category:Photography]]
[[Category:Tutorials]]
[[Category:Tutorials]]
</translate>
</translate>

Revision as of 18:57, 4 September 2010

Renaming Photos with digiKam

This article originally appeared in Scribbles and Snaps and is reproduced with the kind permission of Dmitri Popov.

Giving your photos meaningful names makes it significantly easier to keep tabs on them. Of course, renaming each and every photo by hand is not particularly practical, especially if you take dozens or even hundreds of photos each day. This is when digiKam’s Rename feature can come in rather handy. You can use it to define rather advanced renaming rules and apply them to multiple photos in one fell swoop.

To put the Rename tool to practical use, select the photos you want to rename and press the Rename button in the main toolbar (you can also choose Image -> Rename or press F2). The Rename dialog window offers a vast range of renaming options which allow you to create complex renaming rules. But you might want to start with a simple rule that renames photos using the date and time data. To do this, press the Date & Time button and select Image from the Source drop-down list. This will pull the date and time info from the photo’s metadata.

Next, you have to specify a date/time format by selecting the appropriate item from the Format drop-down list. If none of the available formatting options satisfy you, select the Custom item, which lets you construct the formatting string manually. For example, the

yyyyMMdd-hhmmss

formatting string produces file names like

20100531-173501

and

20100701-110111

while the

MMM-dd-yyyy-dddd

string generates names like

May-31-2010-Monday

and

June-01-2010-Tuesday

The clever part is that you can immediately see the result of the renaming string right below the Format field. For a full list of available formatting options, check the official Qt documentation.

Besides date and time, the Rename dialog window offers a few other useful options. The Camera button, for example, allows you to add the camera model to the file name. This can be useful if you are using several cameras and you want to quickly identify photos taken with a specific camera. The Metadata button gives you access to EXIF and other photo metadata you can use in renaming rules.

Next to the field where you enter the renaming rule, there is a button that lets you specify so-called modifiers or actions that will be applied to the file names during the renaming operation. For example, using the Change Case modifiers, you can convert all file names to lower or uppercase, or capitalize the first letter. Here is a quick overview of other useful modifiers:

Trimmed – Removes leading, trailing, and extra spaces. Unique – Adds unique numerical values to identical file names. Replace – Performs search and replace. The modifier supports regular expressions. Range – Lets you specify a specific fragment of the file name for the renaming rule. For example, the {5-} modifier in the [file]{5-} rule removes the first four characters of the file name, so IMAG0113.jpg, IMAG0351.jpg, and IMAG0573.jpg are renamed to 0113.jpg, 0351.jpg, and 0573.jpg

While digiKam offers a wide range of other features that can help you to keep tabs on your photos, it’s worth experimenting with the Rename tool. This way, you can quickly locate or identify specific photos even when digiKam is not running.