Skip to content

A lightweight web service for generating image previews, built with Go. Easily creates scaled previews of JPEG images through a simple REST API.

License

Notifications You must be signed in to change notification settings

kpechenenko/img-previewer

Repository files navigation

Image previewer

A lightweight web service for generating image previews, built with Go. Easily creates scaled previews of JPEG images through a simple REST API.

demo.gif

Installation

make build-img

Usage

make run-img

The image previewer is running in localhost on port 8080.

In browser go to http://<SERVICE_HOST>:<SERVICE_PORT>/preview/<PREVIEW_WIDTH>/<PREVIEW_HEIGHT>/<LINK_TO_ORIGINAL_IMAGE>

For example: http://127.0.0.1:8080/preview/100/300/raw.githubusercontent.com/OtusGolang/final_project/master/examples/image-previewer/_gopher_original_1024x504.jpg

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License.

About

A lightweight web service for generating image previews, built with Go. Easily creates scaled previews of JPEG images through a simple REST API.

Topics

Resources

License

Stars

Watchers

Forks