Subject: | GIF not supporting all extension blocks |
I was trying to parse a GIF image in my HTML file using
PDF::API2::Resource::XObject::Image::GIF and it reported:
unsupported graphic control extension (254) at
/opt/ActivePerl-5.8/site/lib/PDF/API2/Resource/XObject/Image/GIF.pm line
229.
254 is of course 0xFE, which denotes a Comment Extension Block in the
GIF format(http://www.onicos.com/staff/iz/formats/gif.html)
The Comment Extension Blocks have the same introducer, 0x21, so
PDF::API2::Resource::XObject::Image::GIF thought it was a malformed
Graphic Control Extension and died.
This will likely be present on all platforms.