Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
IPTCParser fails to find valid metadata in a JPEG after it encounters a record number 1 (it only extracts metadata from records numbered 2). A little debugging showed that this is because it was not properly moving the buffer pointer to the end of the record to pick up subsequent valid records - moving the record number check after the pointer update fixes the problem. I will attach a patch and sample image.
The JPG file demonstrates the bug - use ImageMagick, Photoshop or an other tool and see valid IPTC metadata, but Sanselan misses it. After applying the attached patch, Sanselan does find the metadata in the JPG.