octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #67203] imfinfo does not import full EXIF data


From: Dmitri A. Sergatskov
Subject: [Octave-bug-tracker] [bug #67203] imfinfo does not import full EXIF data from a jpeg file
Date: Thu, 12 Jun 2025 21:32:32 -0400 (EDT)

Follow-up Comment #6, bug #67203 (group octave):

The ISO fix appears to be quite easy. 
"ISOSpeedRatings" is a tag that was missing (apparently it could also be
called "ISO" or "PhotographicSensitivity").
After adding it to (__magic_read__.cc)


@@ -2198,7 +2201,9 @@
               "PhotographicSensitivity",
               "StandardOutputSensitivity",
               "RecommendedExposureIndex",
+              "ISO",
               "ISOSpeed",
+              "ISOSpeedRatings",
               "ISOSpeedLatitudeyyy",
               "ISOSpeedLatitudezzz",
               "FocalPlaneResolutionUnit",


I see with the file <yhuangtc> sent me:

octave:2> imfinfo ("IMG_4935.jpeg")
ans =

  scalar structure containing the fields:

    Filename = /home/dmitri/Downloads/IMG_4935.jpeg
    FileModDate = 10-Jun-2025 01:13:51
    FileSize = 5207058
    Format = JPEG
...deleted...
    Make = Apple
    Model = iPhone 14 Plus
    DateTime = 2025:05:29 16:56:04
    ImageDescription = 
...deleted...
   DigitalCamera =

      scalar structure containing the fields:

        DateTimeOriginal = 2025:05:29 16:56:04
        DateTimeDigitized = 2025:05:29 16:56:04
        SubSecTimeOriginal = 867
        SubSecTimeDigitized = 867
        ColorSpace = 65535
        ExifImageWidth = 4032
        ISOSpeedRatings = 40
        FocalLengthIn35mmFilm = 26
        SubjectArea = 2006
        ExposureProgram = 2
        MeteringMode = 5
        Flash = 16
...deleted...


Or with (file DSCN0010.jpg)

octave:3> imfinfo ("DSCN0010.jpg")
ans =

  scalar structure containing the fields:

    Filename = /home/dmitri/Downloads/DSCN0010.jpg
    FileModDate = 10-Jun-2025 00:20:02
    FileSize = 161713
...deleted...
        ExifImageWidth = 640
        ISOSpeedRatings = 64
        FocalLengthIn35mmFilm = 112
        ExposureProgram = 2
...deleted...


There are more improvements can be done, but those are more involved. Perhaps
we can do it in steps.

Dmitri.
-- 



(file #57290)

    _______________________________________________________

Additional Item Attachment:

File name: DSCN0010.jpg                   Size: 158KiB
    <https://file.savannah.gnu.org/file/DSCN0010.jpg?file_id=57290>


    AGPL NOTICE

These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-e283fc1e831e1a9d7ef799b94eb90b95407712b3.tar.gz


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?67203>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]