GithubHelp home page GithubHelp logo

corona10 / goimghdr Goto Github PK

View Code? Open in Web Editor NEW
40.0 3.0 4.0 453 KB

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

License: BSD 3-Clause "New" or "Revised" License

Go 100.00%
imghdr go

goimghdr's Introduction

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

goimghdr's People

Contributors

corona10 avatar

Stargazers

Elliot Courant avatar Jhuix avatar Ersoy Filinte avatar  avatar Kostas Nasis avatar Yuya Isaka avatar  avatar HylinYin avatar tinmin avatar Manasseh Zhou avatar  avatar Doru Carastan avatar Hou 42 avatar  avatar Saud Khan avatar oskca avatar isaac Moon avatar find0day avatar Robert Bost avatar Yavuz Yurtbeğendi avatar Sven Hohlfeld avatar Thomas LE ROUX  avatar Dave Henderson avatar Steve Agalloco avatar Maurizio Del Corno avatar Markus Kohler avatar  avatar nrtkbb avatar Krzysztof Kowalczyk avatar Julien Lefèvre avatar Shane Hanna avatar Andrey Petrov avatar Nick Ionita avatar  avatar Sean Kelly avatar Minho Kim avatar Yeonwoo Jo avatar Jimmy Song avatar  avatar Haeun Kim avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.