x32net / imageserver

Image server toolkit in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image Server

An image server toolkit in Go (Golang)

GoDoc Build Status codecov.io Go Report Card

Features

Examples

Demo

Click the images to see the URL parameters.

Resize

Options Result
width=200
(preserve aspect ratio)
height=200
(preserve aspect ratio)
width=200&height=200
(change aspect ratio)
width=200&height=200&mode=fit
(fit in 200x200)
width=200&height=200&mode=fill
(fill 200x200 and crop)

Animated GIF

Original Resized
Animated
Spaceship

Gamma correction (more info)

Original Disabled Enabled
Dalai Gamma
Gray squares
Random
Rings

Resampling

Resampling Rings Large
Nearest neighbor
Box
Linear
Cubic
Lanczos

Quality

JPEG quality Result
5%
10%
50%

Convert (JPEG to GIF)

Backward compatibility

There is no backward compatibility promises. If you want to use it, vendor it. It's always OK to change things to make things better. The API is not 100% correct in the first commit.

About

Image server toolkit in Go

License:MIT License


Languages

Language:Go 100.0%