ios-imagefile-megapixel icon indicating copy to clipboard operation
ios-imagefile-megapixel copied to clipboard

Fix false positive detection

Open mudcube opened this issue 10 years ago • 0 comments

PNGs or GIFs can currently be improperly detected as JPEGs, this fixes that: 1st it checks for mime on the blob 2nd it checks for data:image/jpeg for dataURLs 3rd it does a check for .jpg or .jpeg for provided string srcs

Otherwise, any transparent PNGs or GIFs will also be detected as "squashed".

Thanks for the great library!

mudcube avatar Sep 12 '14 08:09 mudcube