Skip to content

Instantly share code, notes, and snippets.

@nicoknoll
Last active January 25, 2019 09:55
Show Gist options
  • Save nicoknoll/957dde657985535923fd0ff21dfdab60 to your computer and use it in GitHub Desktop.
Save nicoknoll/957dde657985535923fd0ff21dfdab60 to your computer and use it in GitHub Desktop.

How to run imageproxy

  1. Install go if you haven't so far
  2. Install imageproxy
    • Using standalone installation:
      • go get willnorris.com/go/imageproxy/cmd/imageproxy
      • go build willnorris.com/go/imageproxy/cmd/imageproxy
      • copy resulting binary to where you want to execute it
      • run PATH/TO/EXECUTABLE/imageproxy
    • Using go binary installation:
      • go get willnorris.com/go/imageproxy/cmd/imageproxy
      • ensure $GOPATH/bin is in your $PATH
      • then run the proxy using imageproxy
  3. By default imageproxy will run on port 8080 (try open http://localhost:8080)

If you don't want to use imageproxy set the PYGENO_CDN_IMAGEPROXY_URL environment variable to e.g. ''. All images will be used with their original URL and size then.

If you need more information got to: https://github.com/willnorris/imageproxy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment