Skip to content

mgartner/calipers-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

calipers-go

Package calipers measures the dimensions of image files quickly by not loading the entire image into memory.

Usage

package main

import (
  "github.com/mgartner/calipers-go"
)

func main() {
  result, err := calipers.Measure("path/to/file.png")

  fmt.Printf("%#v\n", result)
  // calipers.Measurement{Type:"png", Width: 100, Height:60}
}

Supported File Types

  • GIF
  • PNG
  • JPEG (coming soon)

Contributing

Feel free to submit a PR!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published