Inspired by Python's imghdr
go get github.com/corona10/goimghdr
Value | Image format |
---|---|
"rgb" | SGI ImgLib Files |
"gif" | GIF 87a and 89a Files |
"pbm" | Portable Bitmap Files |
"pgm" | Portable Graymap Files |
"ppm" | Portable Pixmap Files |
"tiff" | TIFF Files |
"rast" | Sun Raster Files |
"xbm" | X Bitmap Files |
"jpeg" | JPEG data in JFIF or Exif formats |
"bmp" | BMP files |
"png" | Portable Network Graphics |
"webp" | WebP files |
"exr" | OpenEXR Files |