I'm adding functionality to the file uploader that I created that has a built in image cropper. Currently, I disable cropping on gifs as sending the gif to the canvas and getting the base64 of it damages animated gifs. I was wondering if there was a way to determine from the base64 if a GIF is animated?
Asked
Active
Viewed 89 times
0
-
Find a function that converts the Base64 string to an ArrayBuffer/Uint8Array then this: http://stackoverflow.com/a/11250140/246342 – Alex K. Dec 10 '14 at 14:59
-
@AlexK. Thanks, I had hoped I would have to do that. Isn't it potentially slow? – Luke Madhanga Dec 10 '14 at 15:04
-
I would not have thought so, ultimately you will need to try it and see – Alex K. Dec 10 '14 at 15:05
-
@AlexK. Should do shouldn't I – Luke Madhanga Dec 10 '14 at 15:54