Skip to content

The IT Blog

Data, Programming, IT

  • Home
  • Other Profiles
    • GitHub
    • LinkedIn
  • Contact
  • Privacy Policy / Datenschutz
  • GitHub
  • LinkedIn

Recent Posts

  • Exclude OpenAI GPTBot from future crawling a website
  • How to fix: Jabra Elite 75T different volume of in-Ear headphones
  • AI Text Generation and Blogging: How AI-Assisted Writing Can Revolutionize Your Blogging Experience
  • AI Image Generation and the Future of Photography and Graphics Industry
  • An advantage of remote interviews

Categories

  • Android
  • Culture
  • Java
  • Miscellaneous
  • NetBeans
  • Performance
  • Raspberry Pi
  • Scala
  • Swing
  • Windows

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!”
Privacy Policy / Datenschutz Proudly powered by WordPress