Skip to content
/ imgd Public
forked from minotar/imgd

A Minotar is a global avatar that pulls your head off of your Minecraft.net skin, and allows it for use on several thousand sites.

License

Notifications You must be signed in to change notification settings

ohneName/imgd

 
 

Repository files navigation

imgd

imgd is a simple avatar serving system. You're probably looking for Minotar.net

How to install?

Installation is simple - however it requires an installation of Go. Follow the instructions below for a comprehensive, step by step installation.

$ git clone https://github.com/minotar/imgd
$ cd imgd

$ export GOPATH=`pwd`
$ go get

$ go build

After you run go build, golang should automatically generate you an executable file (named imgd). Executing the file is simple: simply run:

$ ./imgd

There you have it! Go visit your installation at your-ip:8000 to view it in action. If you wish to change the address the server listens on, you can do so by editing config.gcfg (it's like an ini file).

Understanding Headers

We use a couple of headers to help in understanding how something is served, here they are:

x-requested

  • returns: processed
  • explain: if Minotar processed your avatar

x-result:

  • returns: ok,failed
  • explain: ok on successful GET from s3, failed on failed GET from s3

x-timing:

  • returns: fetch time, process time, resize time, whole process
  • example: 48+0+4=52

Thanks

Big thanks to lukegb for porting the old version of this script from PHP to Go.

About

A Minotar is a global avatar that pulls your head off of your Minecraft.net skin, and allows it for use on several thousand sites.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%