Project

General

Profile

Bug #830

Bug while displaying camera make and camera model with exiv2 0.23

Added by C D about 7 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
metadata
Target version:
Start date:
24 Jun 2012
Due date:
% Done:

0%

Estimated time:

Description

Hello,

Using "exiv2 pr" on files produced by my camera (see e.g. attached file b.jpg), I get the following output:

Camera make     : Targa GmbHDigital Cam%x
Camera model : Digital Cam%x.%04x

I guess that the appearance of %x is a bug. In comparison, jhead 2.87 outputs:

Camera make  : Targa GmbH
Camera model : Digital Cam

This was tested with exiv2 v.0.23 64 bits under Mac OX 10.6.

HTH; best wishes


Files

b.jpg (8.11 KB) b.jpg C D, 24 Jun 2012 14:03

History

#1

Updated by C D about 7 years ago

The bug was also present with exiv2 v.0.22.

#2

Updated by Robin Mills about 7 years ago

  • Status changed from New to Resolved
  • Assignee set to Robin Mills

Thanks for reporting this and for attaching the file to this report.

I'm not convinced that this is a bug. I'm more suspicious of the metadata in the image. And let me explain my thoughts. At first inspection your issue looks valid (I'm running on cygwin - however I don't suspect this is platform related).

538 rmills@rmills-laptop:~/temp $ exiftool b.jpg | grep -e Camera
Camera Model Name : Digital Cam
File Source : Digital Camera
539 rmills@rmills-laptop:~/temp $ exiv2 -pa b.jpg | grep -e 'Exif.Image.Model' -e 'Exif.Image.Make'
Exif.Image.Make Ascii 26 Targa GmbHDigital Cam%x
Exif.Image.Model Ascii 19 Digital Cam%x.%04x
540 rmills@rmills-laptop:~/temp $

Ah! However you'll notice that Exif.Image.Make is 26 bytes and Exif.Image.Model is 19! When I dump the output using od -a, I see:

540 rmills@rmills-laptop:~/temp $ exiv2 -pa b.jpg | grep -e 'Exif.Image.Model' | od -a
0000000 E x i f . I m a g e . M o d e l
0000020 sp sp sp sp sp sp sp sp sp sp sp sp sp sp sp sp
0000040 sp sp sp sp sp sp sp sp sp sp sp sp sp A s c
0000060 i i sp sp sp sp sp sp 1 9 sp sp D i g i
0000100 t a l sp C a m nul % x . % 0 4 x nl
0000120
541 rmills@rmills-laptop:~/temp $ exiv2 -pa b.jpg | grep -e 'Exif.Image.Make' | od -a
0000000 E x i f . I m a g e . M a k e sp
0000020 sp sp sp sp sp sp sp sp sp sp sp sp sp sp sp sp
0000040 sp sp sp sp sp sp sp sp sp sp sp sp sp A s c
0000060 i i sp sp sp sp sp sp 2 6 sp sp T a r g
0000100 a sp G m b H nul nul D i g i t a l sp
0000120 C a m nul % x nl
0000127
542 rmills@rmills-laptop:~/temp $

Conclusion:
The metadata includes nul bytes. exiftool has treated nul as the end of string and exiv2 has reported it.

If you disagree with my analysis, please voice your concern and I will investigate further.

#3

Updated by Robin Mills about 6 years ago

  • Status changed from Resolved to Closed
  • Target version set to 0.24

Fixed in 0.24.

Also available in: Atom PDF