Skip to content

unterstrich-kolkhoz/img-thumbnailer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

img-thumbnailer

Wherein lies a microservice that resizes thumbnails, given to it by URLs. It is simple to configure and easy to use, and strives to just work.

Install

You can install it by issuing go get github.com/unterstrich-kolkhoz/img-thumbnailer. But beware: it requires ImageMagick!

Configure

The binary needs a configuration file to work. By default, thumbnailer searches for a file named ./etc/img-thumbnailer/server.conf, but this can be changed by supplying the -config flag.

The configuration can be in one of four directories, namely:

./<name>
/<name>
./<name>.local.conf (the first .conf will be replaced)
/<name>.local.conf  (same here)

It can also be split up, in which case all matching files will be merged, in the precedence order above.

Test

The image resizing part is tested, the uploading to S3 part is not—at least not through unit tests! PRs very welcome!


Have fun!

About

Make thumbnails of images and put them on AWS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages