Skip to content

zmilan/go-resize

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go-Resize

A simple image resizing server using SmartCrop and Imaging.

This is a pure Go solution, which means it's not as performant as some other C-based libraries like ImageMagick and OpenCV - it's pretty simple to switch out the crop/resize libraries, but I couldn't use external libraries on Heroku.

API

Just put the desired width, height, and source image URL in the url, e.g.:

http://localhost/200/400/www.example.com/theImage.jpg

Limitations

  1. https sources only
  2. Jpegs only

TODO

  • reduce image.Image copying
  • reference implementations of different imaging libraries
  • performance testing
  • manual crop position control (not just SmartCrop)

About

Simple image resizing web service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%