Skip to content

The imghdr module determines the type of image contained in a file for go

License

Notifications You must be signed in to change notification settings

corona10/goimghdr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status GoDoc Go Report Card Coverage Status

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

example

asciicast

Special thanks to

Reference

About

The imghdr module determines the type of image contained in a file for go

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages