Project

General

Profile

Bug #800

Missing Photoshop IRB types (8BIM, PHUT, DCSR, AgHg)

Added by Michael Ulbrich almost 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Category:
image format
Target version:
Start date:
13 Jan 2012
Due date:
% Done:

100%

Estimated time:

Description

The assumption that image resource blocks (IRB) in JPEG (APP13) and PSD images always start with type designator "8BIM" is wrong. An image with a valid IRB introduced by type designator "AgHg" was found. Writing metadata to such an image leads to error message "Input data does not contain a valid image" in case of JPEG and "This does not look like a Photoshop image" for PSD images. This finding was verified against exiftool sources, which in addition to the common "8BIM" list "PHUT", "DCSR" and "AgHg" as IRB type designators that have been found in rare cases.

A patch and appropriate test cases will be provided and committed ASAP.

Associated revisions

Revision 2646 (diff)
Added by Volker Grabsch almost 10 years ago

#800: Added and unified support for multiple IRB types (8BIM, AgHg, DCSR, PHUT) in JPEG and PSD images

Revision 2650 (diff)
Added by Volker Grabsch almost 10 years ago

#800: Restore binary compatibility

History

#1

Updated by Volker Grabsch almost 10 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

I just commited r2646 which fixes this issue. The patch is a collective effort of Michael and me.

#2

Updated by Andreas Huggel almost 10 years ago

Thanks, Michael and Volker for a very complete fix! Especially for also updating the tests. Only issue I have with the change is that it breaks the binary compatibility of the upcoming release. What if we keep bimId_[] in jpgimage.hpp for the time being and just mark it as obsolete?

#3

Updated by Volker Grabsch almost 10 years ago

Agreed. In r2650 I restored binary compatibility.

I didn't find any special conventions about marking things as deprecated in Exiv2, so I just added "deprecated" to the comments. Please check if that fits into the project coding style.

#4

Updated by Andreas Huggel almost 10 years ago

Thanks! There is no convention for this process yet, the comments are fine.

#5

Updated by Andreas Huggel over 9 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF