goimghdr
The imghdr module determines the type of image contained in a file for Go
About goimghdr
goimghdr
Inspired by Python's imghdr
Installation
go get github.com/corona10/goimghdr
List of return value
| 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 |
Usage
Special thanks to
Reference
Frequently Asked Questions
What is goimghdr?
goimghdr is a Images library for the Go programming language. The imghdr module determines the type of image contained in a file for Go
How do I install goimghdr?
Install goimghdr with the Go module system using `go get corona10/goimghdr`. Check the repository for the current installation instructions.
What category does goimghdr belong to?
goimghdr is listed under Images, specifically Images.
