Mit folgendem Code kann man mit Imagero (Version 398) auch ohne Lizenzdatei alle IPTC-Daten eines Bildes auflisten.
public class TestImagero {
public static void main(String[] args) throws IOException {
String src = "C:\temp\DSC03375a.JPG";
IPTCEntryCollection iec = MetadataUtils.getIPTC(new IOParameterBlock(src));
Enumeration entries = iec.entries();
while (entries.hasMoreElements()) {
IPTCEntry entry = entries.nextElement();
String meta = entry.getEntryMeta().name;
System.out.println(meta + ":" + entry);
}
}
}
Das erzeugt dann folgende Ausgabe mit einem Testbild, in dem ich alle verfügbaren Felder mit Hilfe von IrfanView gefüllt habe (jeweils mit “irfanView Feldbezeichnung):
Imagero META 3.50 Licensed to: ----------- : Imagero License type: non-commercial use only Use on a server allowed: yes URL: ANYURL License valid up to version: 3.50 Expire date: 20.07.2010 Caption/Abstract:irfanView Caption Writer/Editor:irfanView CaptionWriter Headline:irfanView Headline Special instructions:irfanView SpecialInstructions By-line:irfanView Author By-line title:irfanView Author title Credit:irfanView Credits/Rights Source:irfanView source Object name:irfanView ObjectName Date created:20100718 City:irfanView city Sublocation:irfanView sublocation Province/State:irfanView provinceState Country/Primary location name:irfanView country Original transmission reference:irfanView transmission reference Category:irfanView Category Supplemental category:irfanView Supplemental Category Supplemental category:irfanView Supplemental Category Supplemental category:irfanView Supplemental Category Supplemental category:irfanView Supplemental Category Urgency:1 Keywords:irfanView Keyword1 Keywords:irfanView Keyword2 Keywords:irfanView Keyword3 Copyright notice:irfanView Copyright
Verwandte Posts: