Skip to content

The IT Blog

IT, Tech, Data, …

  • Home
  • Blog
    Thoughts about IT, Data, Work Culture
  • HowTos
    Stuff that was hard to find but very helpfull.
  • Research
    Posts from my research activities during my University time
  • About
  • GitHub
  • RSS
  • Mastodon

Imagero: Alle IPTC-Daten listen

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:

  • Imagero: alle EXIF-Daten listen
Posted on 18. July 2010Author FranzCategories JavaTags Imagero, IPTC, Java, metadata

Post navigation

Previous Previous post: Imagero: alle EXIF-Daten listen
Next Next post: Speicherverbrauch in Java oder “Size does matter!”
Imprint Proudly powered by WordPress