goimghdr

package module
v0.0.0-...-9af2afa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2019 License: BSD-3-Clause Imports: 5 Imported by: 7

README

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func What

func What(file string) (string, error)

What returns a string value of image header.

func WhatFromReader

func WhatFromReader(r io.Reader) (string, error)

WhatFromReader returns a string value of image header from Reader.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL