Exif copia incolla con digikam [Risolto]

Tutto ciò che riguarda il pinguino

Moderatori: maxofrome, Enrico, Mauro, old_kappa, Buster

Exif copia incolla con digikam [Risolto]

Messaggioda neopentax » mer giu 18, 2014 9:20 pm

exif copia incolla in ubuntu 12.04 64bit come?

Come è possibile copiare i dati exif di un file jpg (o anche raw) ed incollarli in un altro jpg?
Ultima modifica di neopentax il mer giu 18, 2014 10:50 pm, modificato 1 volta in totale.
neopentax
senior member
 
Messaggi: 328
Iscritto il: mar mar 30, 2010 2:18 pm
 

Re: Exif copia incolla

Messaggioda Pierino64 » mer giu 18, 2014 10:02 pm

neopentax ha scritto:exif copia incolla in ubuntu 12.04 64bit come?

Come è possibile copiare i dati exif di un file jpg (o anche raw) ed incollarli in un altro jpg?


Io uso ExifTool.

Estratto dalle FAQ...

This feature is explained under the -tagsFromFile option in the exiftool application documentation, but the question is common enough that it is discussed here in more detail.
By default, ExifTool will store information in preferred locations when either writing new information or copying information between files. This freedom allows ExifTool to write or copy information to files of different formats without requiring the user to know details about where the information is stored.
The preferred general locations for information written to JPEG images are 1) EXIF, 2) IPTC and 3) XMP. As an example, information extracted from the maker notes will be preferentially written (on a tag-by-tag basis) in EXIF format when copying information between two JPEG images. But if a specific tag doesn't exist in EXIF, then the tag is written to the first valid group in the order specified above. The advantage of "translating" the information to EXIF is that it then becomes readable by applications which only support standard EXIF. The disadvantage is that you don't get an exact copy of the original information structure.
But ExifTool gives you the ability to customize this behaviour to write the information to wherever you want. This is done by specifying a group name for the tag(s) to be copied. This applies even if the group name is "all", in which case the original family 1 group is preserved. So to copy all information and preserve the original structure, use this syntax:
exiftool -tagsfromfile src.jpg -all:all dst.jpg
In this command, since no destination tag was specified, the destination is the same as the source (ie. "-all:all>all:all"), so the information is copied to the same family 1 group.
Here are some examples to show you the type of control you have over where the information is written. All commands in each example are equivalent:
# copy all tags to preferred groups (no destination group)
exiftool -tagsfromfile src.jpg dst.jpg
exiftool -tagsfromfile src.jpg -all dst.jpg
exiftool -tagsfromfile src.jpg "-all>all" dst.jpg
exiftool -tagsfromfile src.jpg "-all:all>all" dst.jpg

# copy all tags, preserving family 1 group (destination group 'all')
exiftool -tagsfromfile src.jpg -all:all dst.jpg
exiftool -tagsfromfile src.jpg "-all>all:all" dst.jpg
exiftool -tagsfromfile src.jpg "-all:all>all:all" dst.jpg

# copy all tags to EXIF group (destination group 'exif')
# [the destination family 1 group is the preferred EXIF IFD]
exiftool -tagsfromfile src.jpg "-all>exif:all" dst.jpg
exiftool -tagsfromfile src.jpg "-all:all>exif:all" dst.jpg

# copy XMP tags to XMP group (destination group 'xmp')
# [the destination family 1 group is the preferred XMP namespace]
exiftool -tagsfromfile src.jpg "-xmp:all" dst.jpg
exiftool -tagsfromfile src.jpg "-xmp:all>xmp:all" dst.jpg

# copy XMP tags, preserving family 1 group (destination group 'all')
exiftool -tagsfromfile src.jpg "-xmp:all>all:all" dst.jpg

# copy XMP tags to preferred groups (no destination group)
exiftool -tagsfromfile src.jpg "-xmp:all>all" dst.jpg

# copy XMP tags to EXIF only (destination group 'exif')
# [the destination family 1 group is the preferred EXIF IFD]
exiftool -tagsfromfile src.jpg "-xmp:all>exif:all" dst.jpg
The same rules illustrated above also apply when copying individual tags.
Note: If no destination group is specified, a new tag is created if necessary only in the preferred group, but if the same tag already exists in another group, then this information is also updated. (Otherwise inconsistent values for the same information would exist in different locations. Of course, you can always generate inconsistencies like this if you really want to by specifically writing contradictory information to different groups.)
Certain types of meta information (such as EXIF, IPTC, XMP and ICC_Profile) may also be copied as a block. This technique copies all meta information, even if ExifTool doesn't have the ability to write some individual tags contained in the block. For all block types except EXIF, the metadata is copied byte-for-byte from the original image. With EXIF however, the metadata may be restructured to ensure that it is self-contained. Also note that EXIF may not be written as a block to TIFF-based file formats. Beware that any existing metadata of this type in the distination file will be overwritten by the new block.
# copy EXIF as a block between same-named JPG files in different directories
exiftool -tagsfromfile SRCDIR/%f.%e -ext jpg DSTDIR

# copy XMP as a block from one file to another
exiftool -tagsfromfile src.jpg -xmp dst.cr2

Qua tutte le FAQ: http://www.sno.phy.queensu.ca/~phil/exiftool/faq.html#
(^_^)
---|---
.../ \...
Avatar utente
Pierino64
Ho fuso la tastiera...
 
Messaggi: 6041
Iscritto il: lun dic 27, 2010 11:43 pm
Località: Collecchio (Parma)
 

Re: Exif copia incolla

Messaggioda neopentax » mer giu 18, 2014 10:10 pm

come si usa?
Con il terminale vado di copia incolla, se mi dai un esempio di sintassi...

Anche con digikam mi dicono che è possibile tramite importa dati exif, ma non lo trovo fra la miriade di possibilità, anzi l'avevo visto e poi me lo sono perso.....
neopentax
senior member
 
Messaggi: 328
Iscritto il: mar mar 30, 2010 2:18 pm
 

Re: Exif copia incolla

Messaggioda Pierino64 » mer giu 18, 2014 10:23 pm

neopentax ha scritto:come si usa?
Con il terminale vado di copia incolla, se mi dai un esempio di sintassi...

Anche con digikam mi dicono che è possibile tramite importa dati exif, ma non lo trovo fra la miriade di possibilità, anzi l'avevo visto e poi me lo sono perso.....

Quelli che ti ho postato sono proprio esempi da usare dalla console.

Le righe prefissate dal # sono i commenti e sotto ci sono le righe con il comando corrispondente.
(^_^)
---|---
.../ \...
Avatar utente
Pierino64
Ho fuso la tastiera...
 
Messaggi: 6041
Iscritto il: lun dic 27, 2010 11:43 pm
Località: Collecchio (Parma)
 

Re: Exif copia incolla

Messaggioda neopentax » mer giu 18, 2014 10:49 pm

Non avevo visto le istruzioni grazie, intanto ho trovato come fare con digikam

- Dentro digikam si seleziona il jpg desiderato che si vuol cambiare exif
- Tendina immagine, dati aggiuntivi, exif, importa
- Selezionare il jpg raw pef...... che ha i dati exif desiderati
- Dare si per sovrascrivere i dati
neopentax
senior member
 
Messaggi: 328
Iscritto il: mar mar 30, 2010 2:18 pm
 


Torna a Linux ®

Chi c’è in linea

Visitano il forum: Nessuno e 3 ospiti