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

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.
Qwen3-TTS: The Open-Source Text-to-Speech Revolution. No Nvidia GPU required, AMD CPU supported

Qwen3-TTS: The Open-Source Text-to-Speech Revolution. No Nvidia GPU required, AMD CPU supported

Alibaba's Qwen team just dropped a bombshell in the AI world with the full open-source release of Qwen3-TTS - a text-to-speech system that's giving commercial services like ElevenLabs and OpenAI's TTS a serious run for their money. Qwen3-TTS CPU Docker configuration What Makes Qwen3-TTS
25 Jan 2026 2 min read

GLM4.7-Flash the new Local LLM king at 30B A3B ?

GLM4.7-Flash represents Z.ai's latest breakthrough in the 30B parameter class, delivering a Mixture-of-Experts (MoE) model that balances high performance with efficiency. Released in January 2026, this model has quickly established itself as a formidable contender in agentic coding and general reasoning tasks. Technical Architecture Model Specifications:
24 Jan 2026 3 min read

The Linux backup heaven. snapper + btrbk. Incremental btrfs backups to a remote ssh server

This guide explains how to configure btrbk to incrementally send existing Snapper snapshots to a remote Btrfs server using SSH. This setup assumes you already have Snapper configured and creating snapshots on your system. Table of Contents 1. Overview 2. Prerequisites 3. Understanding the Setup 4. SSH Setup 5. btrbk
23 Jan 2026 9 min read
Tech blog © 2026
  • Sign up
Powered by Ghost