Coder Social home page Coder Social logo

Comments (2)

drewnoakes avatar drewnoakes commented on May 17, 2024

This occurs in many images during Olympus makernote processing.

This one is particularly bad as all processing halts:

diff --git a/jpg/metadata/minolta dimage s404.jpg.txt b/jpg/metadata/minolta dimage s404.jpg.txt
index fca5fb4..4e11678 100644
--- a/jpg/metadata/minolta dimage s404.jpg.txt  
+++ b/jpg/metadata/minolta dimage s404.jpg.txt  
@@ -51,60 +51,18 @@ FILE: Minolta DiMAGE S404.jpg
 [Olympus Makernote - 0xf006] Image Quality = Raw
 [Olympus Makernote - 0xf007] Shooting Mode = Single
 [Olympus Makernote - 0xf008] Metering Mode = Unknown (43)
-[Olympus Makernote - 0xf009] Apex Film Speed Value = 450.0
+[Olympus Makernote - 0xf009] Apex Film Speed Value = 450
 [Olympus Makernote - 0xf00a] Apex Shutter Speed Time Value = 1.890625 sec
-[Olympus Makernote - 0xf00b] Apex Aperture Value = f/0.2
+[Olympus Makernote - 0xf00b] Apex Aperture Value = f/0.3
 [Olympus Makernote - 0xf00c] Macro Mode = Off
 [Olympus Makernote - 0xf00d] Digital Zoom = Unknown (6)
-[Olympus Makernote - 0xf00e] Exposure Compensation = -1.6666666666666667 EV
+[Olympus Makernote - 0xf00e] Exposure Compensation = -1.66666666666667 EV
 [Olympus Makernote - 0xf00f] Bracket Step = 1/3 EV
 [Olympus Makernote - 0xf010] Unknown tag (0xf010) = 0
 [Olympus Makernote - 0xf011] Interval Length = N/A
 [Olympus Makernote - 0xf012] Interval Number = N/A
-[Olympus Makernote - 0xf013] Focal Length = 0.0 mm
+[Olympus Makernote - 0xf013] Focal Length = 0 mm
 [Olympus Makernote - 0xf014] Focus Distance = Infinity
 [Olympus Makernote - 0xf015] Flash Fired = Unknown (131204368)
-[Olympus Makernote - 0xf016] Date = Sat Apr 26 00:00:00 BST 2014
-[Olympus Makernote - 0xf017] Time = 00:00:38
-[Olympus Makernote - 0xf018] Max Aperture at Focal Length = f/3.5
-[Olympus Makernote - 0xf019] Unknown tag (0xf019) = 0
-[Olympus Makernote - 0xf01a] Unknown tag (0xf01a) = 0
-[Olympus Makernote - 0xf01b] File Number Memory = Off
-[Olympus Makernote - 0xf01c] Last File Number = 671
-[Olympus Makernote - 0xf01d] White Balance Red = 1.0
-[Olympus Makernote - 0xf01e] White Balance Green = 1.44140625
-[Olympus Makernote - 0xf01f] White Balance Blue = 0.01171875
-[Olympus Makernote - 0xf020] Saturation = 0
-[Olympus Makernote - 0xf021] Contrast = -2
-[Olympus Makernote - 0xf022] Sharpness = Normal
-[Olympus Makernote - 0xf023] Subject Program = Unknown (6)
-[Olympus Makernote - 0xf024] Flash Compensation = -0.6666666666666666 EV
-[Olympus Makernote - 0xf025] ISO Setting = 800
-[Olympus Makernote - 0xf026] Camera Model = DiMAGE 7
-[Olympus Makernote - 0xf027] Interval Mode = Time Lapse Movie
-[Olympus Makernote - 0xf028] Folder Name = Data Form
-[Olympus Makernote - 0xf029] Color Mode = Unknown (8000)
-[Olympus Makernote - 0xf02a] Color Filter = 5
-[Olympus Makernote - 0x0010] Unknown tag (0x0010) = [12968 values]
-[Olympus Makernote - 0x0020] Unknown tag (0x0020) = [354 values]
-[Olympus Makernote - 0x0040] Compressed Image Size = 1826901
-[Olympus Makernote - 0x0e00] Print Image Matching (PIM) Info = [40 values]
-
-[Interoperability - 0x0001] Interoperability Index = Recommended Exif Interoperability Rules (ExifR98)
-[Interoperability - 0x0002] Interoperability Version = 1.00
-
-[Exif Thumbnail - 0x0103] Compression = JPEG (old-style)
-[Exif Thumbnail - 0x0112] Orientation = Top, left side (Horizontal / normal)
-[Exif Thumbnail - 0x011a] X Resolution = 72 dots per inch
-[Exif Thumbnail - 0x011b] Y Resolution = 72 dots per inch
-[Exif Thumbnail - 0x0128] Resolution Unit = Inch
-[Exif Thumbnail - 0x0201] Thumbnail Offset = 14338 bytes
-[Exif Thumbnail - 0x0202] Thumbnail Length = 4381 bytes
-[Exif Thumbnail - 0x0213] YCbCr Positioning = Center of pixel array
-
-[File - 0x0001] File Name = Minolta DiMAGE S404.jpg
-[File - 0x0002] File Size = 1897844 bytes
-[File - 0x0003] File Modified Date = Sun Jan 27 02:31:15 +00:00 2013
-
 Generated using metadata-extractor
 https://drewnoakes.com/code/exif/

from metadata-extractor-dotnet.

drewnoakes avatar drewnoakes commented on May 17, 2024

This bug is seen because the Java version stored int32u_t as long (because there are no unsigned integers in Java), but the C# version uses uint. The descriptor class was failing to cast this to long[], as long is used to model uint in Java.

from metadata-extractor-dotnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.