Project

General

Profile

Patch #738

PSD resource block handling patch

Added by Michael Ulbrich about 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Normal
Category:
image format
Target version:
Start date:
23 Oct 2010
Due date:
23 Oct 2010
% Done:

100%

Estimated time:

Description

1. In PsdImage::doWriteMetadata() the resourceNameLength was written modulo 0x000f. This is a bug since max name length is 255. The attached patch changes the mask value to 0x00ff.

2. In cases where original resource blocks are not stored by resource id in ascending order, exiv2 writes EXIF, IPTC or XMP blocks early in the list of resource blocks. If the original file contained it's EXIF, IPTC and XMP blocks towards the end of the resource list, exiv2 erroneously wrote it's blocks again, at the position of the original blocks. This behaviour did not corrupt the data structure, but is also fixed by the attached patch.


Files

exiv2-0.20_psdimage.patch (2.38 KB) exiv2-0.20_psdimage.patch Michael Ulbrich, 23 Oct 2010 14:22

Associated revisions

Revision 2370 (diff)
Added by Andreas Huggel about 11 years ago

#738: Applied patch from Michael Ulbrich.

History

#1

Updated by Andreas Huggel about 11 years ago

Checked-in the patch. Thanks!

Andreas

#2

Updated by Andreas Huggel almost 11 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF