Tech blog
  • Blog
  • Github
  • Twitter
  • luigi@grigio.org
fotografia

Convertire i metadata da XMP a IPTC e due parole su Picasa

  • Luigi

Luigi

15 Jul 2009 • 1 min read
Share

In passato ho già parlato di metadata XMP e IPTC per organizzare al meglio le proprie foto e video, questa volta parlo di migrazione di metadata.

XMP vs IPTC

Nell'uso pratico non c'è molta differenza nell'usare uno piuttosto che l'altro, dipende dai programmi che usate. IPTC è supportato di default da Spotlight di Mac e XMP dal File Manager di Windows Vista/7, in ogni caso sceglietene uno e non mischiateli se non volete crearvi problemi.

I Tool per la conversione batch: Exiftool e Ruby

Prima di fare qualsiasi cosa fate backup delle vostre foto, sovrascrivere i metadata è comunque un'operazione distruttiva.

Ora dovete scaricare Exiftool per il vostro sistema operativo e Ruby un linguaggio di scripting (anche Bash o WSH fanno bene se sapete riadattare lo script)

xmp2iptc.rb

Copiate lo script qui sotto in xmp2iptc.rb e rendetelo eseguibile.

#!/usr/bin/env ruby
require 'find'
begin
Find.find(ARGV[0]) do |file|
  if file =~ /JPG$/i
    puts `exiftool -tagsFromFile '#{file}' -@ xmp2iptc.args -overwrite_original '#{file}' -xmp:all`
  end
end
rescue TypeError
 puts 'xmp2iptc.rb is AS IS, YOU USE IT AT YOUR OWN RISK (c) Luigi Maselli - http://grigio.org'
 puts 'usage: xmp2iptc.rb <directory>'
end

Create un file xmp2iptc.args e scrivete come volete mappare i metadata. Esempio:

-XMP-dc:Subject > IPTC:Keywords

Per maggiori informazioni fate riferimento al sito di Exiftool o date una sguardo a questa discussione sul forum di XnView.

Eseguite:

./xmp2iptc.rb <directory>

Verrà applicata ricorsivamente la conversione dei metadata da XMP a IPTC per ogni file .jpg

Qualche nota su Picasa e i video MOV/H264

  • Picasa usa metadata IPTC e legge XMP, ma attenzione quando modificate o ridimensionate una foto con Picasa solo i metadati IPTC vengono conservati!
  • Su Windows Picasa ha bisogno di Quicktime per poter aprire i file video MOV/H264.
  • I metadati dei  video vengono scritti su un file a parte (.picasa.ini) e quindi non utilizzano né IPTC né XMP (embedded). Occhio quindi quando spostate i video.

Why people run models locally

A thread asked why people run models on their own machines. Cost is the answer most of us expect, with privacy close behind. The most upvoted comment in the thread was two words long: "It's fun." The next one down gave eight reasons, and fun appeared
14 Oct 2026 2 min read

Something is falling apart at GNOME, and it's not subtle.

Bryan Lunduke put out a long video yesterday documenting what he calls a meltdown inside the GNOME Foundation. After going through the transcript and the comment thread, I think he's mostly right. People inside GNOME are fighting each other publicly over politics, over whether to use AI, over
14 Oct 2026 2 min read
LLM vs Decision models like Jev and use-cases
Featured

LLM vs Decision models like Jev and use-cases

I ran a small benchmark on my laptop this week. Eight triage questions, four model rows, one shared ground truth. The general-purpose 4B chat model got all eight right, in both thinking and non-thinking mode. So did the best decision model. The clock is where they split: 1,
14 Oct 2026 4 min read
Tech blog © 2026
  • Sign up
Powered by Ghost