Bugzilla – Attachment #56655: patch from php bugzilla for bug #132684
}
/*
* Hack to make it process IDF1 I hope
* Ignore IFD2 if it purportedly exists
* There are 2 IDFs, the second one holds the keys (0x0201 and 0x0202) to the thumbnail
*/
if (section_index == SECTION_THUMBNAIL) {
return TRUE;
* Process IFD1
* There are up to 2 IFDs, the second one holds the keys (0x0201 and 0x0202) to the thumbnail
NextDirOffset = php_ifd_get32u(dir_start+2+12*de, ImageInfo->motorola_intel);
if (NextDirOffset) {