Digikam/Canviar el nom de les fotografies

From KDE UserBase Wiki
Revision as of 13:56, 25 March 2012 by Abella (talk | contribs) (Created page with "A la pràctica, utilitzeu l'eina <menuchoice>Reanomena</menuchoice>, seleccioneu les fotos que voleu canviar el nom i premeu el botó <menuchoice>Reanomena</menuchoice> a la barr...")

Canviar el nom de les fotos amb digiKam

Aquest article va aparèixer originalment a Scribbles and Snaps i ha estat reproduït amb el permís d'en Dmitri Popov.

Donant noms significatius a les vostres fotos fareu molt més fàcil dur un control sobre aquestes. Per descomptat, canviar de nom una a una no és gaire pràctic, especialment si es prenen desenes o fins i tot centenars de fotos cada dia. Aquí és on la característica Reanomena del digiKam pot venir bé. La podeu utilitzar per definir les regles de canvi de nom avançades i aplicar-les a múltiples fotos d'una sola vegada.

Copyright Dmitri Popov


A la pràctica, utilitzeu l'eina Reanomena, seleccioneu les fotos que voleu canviar el nom i premeu el botó Reanomena a la barra d'eines principal (també podeu escollir Imatge -> Reanomena o premeu F2). El diàleg Reanomena ofereix una àmplia gamma d'opcions que us permetran canviar el nom creant regles complexes. No obstant, potser voldreu començar amb una regla simple per canviar el nom de les fotos fent servir la informació sobre la data i l'hora. Per això premeu el botó Data i hora i seleccioneu Imatge des de la llista desplegable Origen. D'aquesta manera, la informació sobre la data i hora es prendrà de les metadades de la foto.

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.

Copyright Dmitri Popov


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.