Package: jhead
Version: 2.3-2
Severity: normal

With version 2.3, after running jhead -ft, the file date is, imho, uncorrectly 
set to Exif "DateTime" field and ignores DateTimeOriginal and DateTimeDigitized.

I compare here jhead version 2.2-1 and 2.3-2. In both cases, i provide the 
following information and results:

Information about jhead and picture:
        $ dpkg -l jhead
        $ jhead -V
        $ jhead test1.jpg
        $ jhead -v test1.jpg  | grep Time
        $ jhead -v test1.jpg

Test:
        $ ll -tr test1.jpg
        $ jhead -ft  test1.jpg
        $ ll -tr test1.jpg

(In both cases i will use the same test1.jpg picture file).

-- Version 2.2-1 ------------------------------------------------

$ dpkg -l jhead
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  jhead          2.2-1          Manipulate the non-image part of Exif compli

$ jhead -V
Jhead version: 2.2   Compiled: Jul 14 2004

$ jhead test1.jpg
File name    : test1.jpg
File size    : 174789 bytes
File date    : 2005:02:01 19:33:43
Camera make  : SONY
Camera model : DSC-W1
Date/Time    : 2005:01:29 20:26:20
Resolution   : 922 x 1229
Flash used   : Yes
Focal length :  7.9mm
Exposure time: 0.025 s  (1/40)
Aperture     : f/2.8
ISO equiv.   : 100
Metering Mode: matrix
Exposure     : program (auto)
Jpeg process : Baseline
Comment      : Author: Jean-Michel Dumont.

$ jhead -v test1.jpg  | grep Time
   DateTime = "2005:01:30 13:42:57?"
        ExposureTime = 10/400
        DateTimeOriginal = "2005:01:29 20:26:20?"
        DateTimeDigitized = "2005:01:29 20:26:20?"
        SubSecTime = "740?"
Date/Time    : 2005:01:29 20:26:20

$ jhead -v test1.jpg
Exif header 2338 bytes long
Exif section in Intel order
(dir has 11 entries)
    ImageDescription = "                               ?"
    Make = "SONY?"
    Model = "DSC-W1?"
    Orientation = 1
    XResolution = 72/1
    YResolution = 72/1
    ResolutionUnit = 2
    Software = "ACD Systems Digital Imaging?"
    DateTime = "2005:01:30 13:42:57?"
    YCbCrPositioning = 1
    ExifOffset = 254
    Exif Dir:(dir has 31 entries)
        ExposureTime = 10/400
        FNumber = 28/10
        ExposureProgram = 2
        ISOSpeedRatings = 100
        ExifVersion = "0210"
        DateTimeOriginal = "2005:01:29 20:26:20?"
        DateTimeDigitized = "2005:01:29 20:26:20?"
        ComponentsConfiguration = "?"
        CompressedBitsPerPixel = 8/1
        ExposureBiasValue = 0/10
        MaxApertureValue = 48/16
        MeteringMode = 5
        LightSource = 0
        Flash = 13
        FocalLength = 79/10
        Maker note:  53 4f 4e 59 20 44 53 43 20 00 00... (1566 bytes)
        SubSecTime = "740?"
        FlashPixVersion = "0100"
        ColorSpace = 1
        ExifImageWidth = 922
        ExifImageLength = 1229
        InteroperabilityOffset = 2286
        Interop Dir:(dir has 2 entries)
            InteropIndex = "R98?"
            InteropVersion = "0100"
        FileSource = "?"
        SceneType = "?"
        CustomRendered = 0
        ExposureMode = 0
        WhiteBalance = 0
        SceneCaptureType = 0
        Contrast = 0
        Saturation = 0
        Sharpness = 0
    Continued directory (dir has 1 entries)
        Compression = 6
Non settings part of Exif header: 0 bytes
JPEG image is 922w * 1229h, 3 color components, 8 bits per sample
COM marker comment: Author: Jean-Michel Dumont.
Jpeg section marker 0xdb size 132
Jpeg section marker 0xc4 size 170
File name    : test1.jpg
File size    : 174789 bytes
File date    : 2005:02:01 19:33:43
Camera make  : SONY
Camera model : DSC-W1
Date/Time    : 2005:01:29 20:26:20
Resolution   : 922 x 1229
Flash used   : Yes
Focal length :  7.9mm
Exposure time: 0.025 s  (1/40)
Aperture     : f/2.8
ISO equiv.   : 100
Metering Mode: matrix
Exposure     : program (auto)
Jpeg process : Baseline
Comment      : Author: Jean-Michel Dumont.

$ ll -tr test1.jpg
-rw-r--r--  1 adumont root 174789 Feb  1 19:33 test1.jpg

-> (random) date before running jhead -ft 

$ jhead -ft  test1.jpg
test1.jpg

$ ll -tr test1.jpg
-rw-r--r--  1 adumont root 174789 Jan 29 20:26 test1.jpg

File date after running jhead -ft is set to DateTimeOriginal, which is correct.


-- Version 2.2-1 ------------------------------------------------

Information about jhead and picture:

alegrome$ dpkg -l jhead
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  jhead          2.3-2          manipulate the non-image part of Exif compli


alegrome$ jhead -V
Jhead version: 2.3-2   Compiled: Jan 28 2005

alegrome$ jhead test1.jpg
File name    : test1.jpg
File size    : 174789 bytes
File date    : 2005:01:29 20:26:20
Camera make  : SONY
Camera model : DSC-W1
Date/Time    : 2005:01:29 20:26:20
Resolution   : 922 x 1229
Flash used   : Yes (manual, return light not detected)
Focal length :  7.9mm
Exposure time: 0.025 s  (1/40)
Aperture     : f/2.8
ISO equiv.   : 100
Whitebalance : Auto
Metering Mode: matrix
Exposure     : program (auto)
Comment      : Author: Jean-Michel Dumont.

alegrome$ jhead -v test1.jpg  | grep Time
    DateTime = "2005:01:30 13:42:57?"
        ExposureTime = 10/400
        DateTimeOriginal = "2005:01:29 20:26:20?"
        DateTimeDigitized = "2005:01:29 20:26:20?"
        SubSecTime = "740?"
Date/Time    : 2005:01:29 20:26:20


alegrome$ jhead -v test1.jpg
Exif header 2338 bytes long
Exif section in Intel order
(dir has 11 entries)
    ImageDescription = "                               ?"
    Make = "SONY?"
    Model = "DSC-W1?"
    Orientation = 1
    XResolution = 72/1
    YResolution = 72/1
    ResolutionUnit = 2
    Software = "ACD Systems Digital Imaging?"
    DateTime = "2005:01:30 13:42:57?"
    YCbCrPositioning = 1
    ExifOffset = 254
    Exif Dir:(dir has 31 entries)
        ExposureTime = 10/400
        FNumber = 28/10
        ExposureProgram = 2
        ISOSpeedRatings = 100
        ExifVersion = "0210"
        DateTimeOriginal = "2005:01:29 20:26:20?"
        DateTimeDigitized = "2005:01:29 20:26:20?"
        ComponentsConfiguration = "?"
        CompressedBitsPerPixel = 8/1
        ExposureBiasValue = 0/10
        MaxApertureValue = 48/16
        MeteringMode = 5
        LightSource = 0
        Flash = 13
        FocalLength = 79/10
        Maker note:  53 4f 4e 59 20 44 53 43 20 00 00... (1566 bytes)
        SubSecTime = "740?"
        FlashPixVersion = "0100"
        ColorSpace = 1
        ExifImageWidth = 922
        ExifImageLength = 1229
        InteroperabilityOffset = 2286
        Interop Dir:(dir has 2 entries)
            InteropIndex = "R98?"
            InteropVersion = "0100"
        FileSource = "?"
        SceneType = "?"
        CustomRendered = 0
        ExposureMode = 0
        WhiteBalance = 0
        SceneCaptureType = 0
        Contrast = 0
        Saturation = 0
        Sharpness = 0
    Continued directory (dir has 1 entries)
        Compression = 6
Non settings part of Exif header: 0 bytes
JPEG image is 922w * 1229h, 3 color components, 8 bits per sample
COM marker comment: Author: Jean-Michel Dumont.
Jpeg section marker 0xdb size 132
Jpeg section marker 0xc4 size 170
File name    : test1.jpg
File size    : 174789 bytes
File date    : 2005:01:29 20:26:20
Camera make  : SONY
Camera model : DSC-W1
Date/Time    : 2005:01:29 20:26:20
Resolution   : 922 x 1229
Flash used   : Yes (manual, return light not detected)
Focal length :  7.9mm
Exposure time: 0.025 s  (1/40)
Aperture     : f/2.8
ISO equiv.   : 100
Whitebalance : Auto
Metering Mode: matrix
Exposure     : program (auto)
Comment      : Author: Jean-Michel Dumont.

alegrome$ ll -tr test1.jpg
-rw-r--r--  1 adumont root 174789 Feb  1 19:42 test1.jpg

alegrome$ jhead -ft  test1.jpg
test1.jpg

alegrome$ ll -tr test1.jpg
-rw-r--r--  1 adumont root 174789 Jan 30 13:42 test1.jpg

-> After jhead -ft, the file date is, imho, uncorrectly set to Exif "DateTime" 
field when it should be DateTimeOriginal.



-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.27
Locale: LANG=C, [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages jhead depends on:
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libjpeg-progs               6b-9         Programs for manipulating JPEG fil

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to