Skip to content
golibriPublic

About

web image processing

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status GoDoc Built with Spacemacs

golibri/image

Incremental image processing from web sources. Reads from png and jpg sources, but uses only jpeg internally and for exports.

installation

go get -u github.com/golibri/image

usage

  1. Initialize with an image URL (.png, .jpg or .jpeg)
  2. Download and analyze the actual image (bytes, height, width)
  3. Create a thumbnail of arbitrary size off the image (jpg)
  4. The Thumbnail also has a Base64 representation
img := image.New("https://golang.org/doc/gopher/frontpage.png"). // init
  Fetch(). // download and analyze
  CreateThumbnail(120, 70) // width, height

thumb := img.Thumbnail // thumb also has type "Image"

Check the struct's data fields for any info you might need. You can also create a Base64 off the original image if needed.

license

LGPLv3. (You can use it in commercial projects as you like, but improvements/bugfixes must flow back to this lib.)

About

web image processing

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

⌂ 换网址