Skip to content

Go (and cgo) based image resizing server. For demonstration purposes only – don't use this.

Notifications You must be signed in to change notification settings

bentranter/image_resizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Resizer (and Optimizer)

A server that optimizes and resizes JPEGs (nothing else).

Usage

After cloning this repo,

go run main.go

If this fails, ensure that you have cgo enabled, and your machine is supported by lilliput.

Benchmarks

A 1MB image is resized to 50% of it's original size while preserving its aspect ratio, and has a compression factor of 5x (from 1MB to 200KB). This resizing operation take on average 340ms, according to the benchmark below.

goos: darwin
goarch: amd64
pkg: github.com/bentranter/image_resizer
BenchmarkResize-4   	      10	 339673906 ns/op	542114793 B/op	      27 allocs/op
PASS
ok  	github.com/bentranter/image_resizer	3.853s

About

Go (and cgo) based image resizing server. For demonstration purposes only – don't use this.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages