sdsykes / fastimage

FastImage finds the size or type of an image given its uri by fetching as little as needed
http://github.com/sdsykes/fastimage/tree/master
MIT License
1.37k stars 115 forks source link

Fix GIF global color table flag check #122

Closed nbianca closed 3 years ago

nbianca commented 3 years ago

Zero is a truthy value, which was a problem when checking if specific bit is set.

sdsykes commented 3 years ago

Yeh, I'll merge this.

Do you have any test images that exercise this code path? (And other code paths in animated? for that matter).

nbianca commented 3 years ago

That check used to be always true, so I just added an animated GIF without a GCT.