Patch #738

PSD resource block handling patch

Added by Michael Ulbrich almost 7 years ago. Updated over 6 years ago.

Status:ClosedStart date:23 Oct 2010
Priority:NormalDue date:23 Oct 2010
Assignee:Michael Ulbrich% Done:

100%

Category:image format
Target version:0.21

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.

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

Associated revisions

Revision 2370
Added by Andreas Huggel over 6 years ago

#738: Applied patch from Michael Ulbrich.

History

#1 Updated by Andreas Huggel over 6 years ago

Checked-in the patch. Thanks!

Andreas

#2 Updated by Andreas Huggel over 6 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF

Redmine Appliance - Powered by TurnKey Linux