Project

General

Profile

Bug #1114

negative values of type SByte displayed as positive numbers

Added by Norbert Wagner about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
metadata
Target version:
Start date:
06 Sep 2015
Due date:
% Done:

100%

Estimated time:
2.00 h

Description

I have a camera filling the tag Exif.NikonAFT.AFFineTuneAdj. Camera for example shows -9, output of exiv2 is 247.
The only other tag of type SByte I have found is Exif.Pentax.Temperature.

Associated revisions

Revision 3929 (diff)
Added by Robin Mills about 6 years ago

#1114 Fix submitted.

Revision 3930 (diff)
Added by Robin Mills about 6 years ago

#1114. Correction to r3929.

History

#1

Updated by Robin Mills about 6 years ago

  • Category set to metadata
  • Assignee set to Robin Mills
  • Priority changed from Low to Normal
  • Target version set to 0.26

Thanks for reporting this, Norbert. Can you provide an image file for me to reproduce this. I'd like you to give us permission to reuse the metadata in your file in our test suite.

#2

Updated by Robin Mills about 6 years ago

I've got the file you provided when we discussed something about this a couple of years ago. http://dev.exiv2.org/boards/3/topics/1337

Here's what I see:

519 rmills@rmillsmbp:~/clanmills $ exiv2 -pv http://dev.exiv2.org/attachments/download/422/Example-Byte-SByte.jpg | grep SByte
0x0002 NikonAFT     AFFineTuneAdj               SByte       1  254
520 rmills@rmillsmbp:~/clanmills $ 
So, no need for another file. I'll investigate and let you know.

#3

Updated by Robin Mills about 6 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
  • Estimated time set to 2.00 h

Fix submitted. r3929.

562 rmills@rmillsmbp:~ $ exiv2 -pv -g TuneAdj http://dev.exiv2.org/attachments/download/422/Example-Byte-SByte.jpg
0x0002 NikonAFT     AFFineTuneAdj               SByte       1  -2
563 rmills@rmillsmbp:~ $ 
I've copied your file Example-Byte-SByte.jpg to test/data/exiv2-bug1114.jpg and use it as a regression detector in our test suite.

I've set the status to Resolved/100% and, if nothing else arises, this will be closed prior to shipping v0.26.

#4

Updated by Robin Mills about 6 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF