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 EXIF-Daten listen

Mit folgendem Code kann man mit Imagero (Version 398) auch ohne Lizenzdatei alle EXIF-Daten eines Bildes auflisten.


public class TestImagero {
    public static void main(String[] args) throws IOException {
        String src = "C:\temp\DSC03375.JPG";
        ImageFileDirectory[] ifds = MetadataUtils.getExif(new IOParameterBlock(src));
        for (ImageFileDirectory ifd : ifds) {
            for (IFD_Entry entry : ifd.get.entries()) {
                String desc = entry.get.entryMeta().getName();
                String type = entry.get.typeAsString();
                String value = entry.getValuesAsString(255);
                System.out.println(desc + ": " + type + ":" + value);
            }
        }
    }
}

Das erzeugt dann folgende Ausgabe mit einem Testbild:

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

ImageDescription: ASCII:SONY DSC
Make: ASCII:SONY
Model: ASCII:DSLR-A350
Orientation: SHORT:8
XResolution: RATIONAL:72/1,
YResolution: RATIONAL:72/1,
ResolutionUnit: SHORT:2
Software: ASCII:DSLR-A350 v1.00
DateTime: ASCII:2010:07:10 09:09:10
YCbCrPositioning: SHORT:2
ExifPointer: LONG:53835
Unknown: UNDEFINED:0x50 0x72 0x69 0x6e 0x74 0x49 0x4d 0x0 0x30 0x33 [...]
GPSInfoIFDPointer: LONG:54237
ExposureTime: RATIONAL:1/800,
FNumber: RATIONAL:56/10,
ExposureProgram: SHORT:3
ISOSpeedRatings: SHORT:200
ExifVersion: UNDEFINED:0221
DateTimeOriginal: ASCII:2010:07:10 09:09:10
DateTimeDigitized: ASCII:2010:07:10 09:09:10
ComponentsConfiguration: UNDEFINED:
CompressedBitsPerPixel: RATIONAL:8/1,
BrightnessValue: SRATIONAL:875/100,
ExposureBiasValue: SRATIONAL:0/10,
MaxApertureValue: RATIONAL:497/100,
MeteringMode: SHORT:5
LightSource: SHORT:11
Flash: SHORT:16
FocalLength: RATIONAL:1500/10,
MakerNote: UNDEFINED:0x53 0x4f 0x4e 0x59 0x20 0x44 0x53 0x43 0x20 [...]
UserComment: UNDEFINED:0x0 0x0 0x0 0x0 [...]
FlashPixVersion: UNDEFINED:0100
ColorSpace: SHORT:1
PixelXDimension: LONG:4592
PixelYDimension: LONG:3056
InteroperabilityIFDPointer: LONG:54410
FileSource: UNDEFINED:
SceneType: UNDEFINED:
CustomRendered: SHORT:0
ExposureMode: SHORT:0
WhiteBalance: SHORT:1
FocalLengthIn35mmFilm: SHORT:225
SceneCaptureType: SHORT:0
Contrast: SHORT:0
Saturation: SHORT:0
Sharpness: SHORT:0
GPSVersionID: BYTE:
GPSLatitude: RATIONAL:47/1, 39/1, 50789/1000,
GPSLatitudeRef: ASCII:N
GPSLongitude: RATIONAL:11/1, 10/1, 34656/1000,
GPSLongitudeRef: ASCII:E
GPSTimeStamp: RATIONAL:7/1, 9/1, 10/1,
GPSDateStamp: ASCII:2010:07:10
Compression: SHORT:6
Orientation: SHORT:8
XResolution: RATIONAL:72/1,
YResolution: RATIONAL:72/1,
ResolutionUnit: SHORT:2
JpegSoi: LONG:40294
JpegDataLength: LONG:2841
YCbCrPositioning: SHORT:2

Verwandte Posts:

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

Post navigation

Previous Previous post: LinkedList 33x schneller als ArrayList oder “Kenne deine API!”
Next Next post: Imagero: Alle IPTC-Daten listen
Imprint Proudly powered by WordPress