Is it possible to determine if a BufferedImage (read from an URL) is a GIF image? I want to check the MIME type, not the file extension .gif.
Thanks
read the very first bytes from the URL, if it's a GIF image, it should start with the 'magic word' : GIF89a
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With