An image server toolkit in Go (Golang)
![Go Report Card](https://camo.githubusercontent.com/05c37097a0c71497fc2afbb6e7972ab696dcef3ddb60a0df752de07af2d23e2f/68747470733a2f2f676f7265706f7274636172642e636f6d2f62616467652f6769746875622e636f6d2f706965727272652f696d616765736572766572)
Click the images to see the URL parameters.
Options |
Result |
width=200 (preserve aspect ratio) |
![](https://camo.githubusercontent.com/deeaf3307f58502588883989fd31ab8a5fb85239f3840b28367e4585e6e0499b/687474703a2f2f6675636b696e6766726f67732e66723a383038302f6c617267652e6a70673f77696474683d323030) |
height=200 (preserve aspect ratio) |
![](https://camo.githubusercontent.com/7b9564ad807cb1c8c9bc40776b5f8df5a55e58390053458dab4716ab78e9aba7/687474703a2f2f6675636b696e6766726f67732e66723a383038302f6c617267652e6a70673f6865696768743d323030) |
width=200&height=200 (change aspect ratio) |
![](https://camo.githubusercontent.com/031d30573953adf835ed33d3858f557fcf7cd9770e81900aa7a7aa2c06c45d98/687474703a2f2f6675636b696e6766726f67732e66723a383038302f6c617267652e6a70673f77696474683d323030266865696768743d323030) |
width=200&height=200&mode=fit (fit in 200x200) |
![](https://camo.githubusercontent.com/6dc0eec522a1a7e1412f3305c977fff22e1b39be73f21449ab03585f743ff38f/687474703a2f2f6675636b696e6766726f67732e66723a383038302f6c617267652e6a70673f77696474683d323030266865696768743d323030266d6f64653d666974) |
width=200&height=200&mode=fill (fill 200x200 and crop) |
![](https://camo.githubusercontent.com/7729380cb601b2b93196ff049c73ac60a600114559f19414a434c4514879cf22/687474703a2f2f6675636b696e6766726f67732e66723a383038302f6c617267652e6a70673f77696474683d323030266865696768743d323030266d6f64653d66696c6c) |
Resampling |
Rings |
Large |
Nearest neighbor |
![](https://camo.githubusercontent.com/92985fe0e91fe0728b9538c7fa49f7e054c11b8b09a3089c02174c5f9886268f/687474703a2f2f6675636b696e6766726f67732e66723a383038302f72696e67732e706e673f77696474683d32303026726573616d706c696e673d6e6561726573745f6e65696768626f7226666f726d61743d706e67) |
![](https://camo.githubusercontent.com/260492cb6f8375eb97e674514d0772f131d51c9ad857335f32f79910f70bd04b/687474703a2f2f6675636b696e6766726f67732e66723a383038302f6c617267652e6a70673f77696474683d32303026726573616d706c696e673d6e6561726573745f6e65696768626f7226666f726d61743d706e67) |
Box |
![](https://camo.githubusercontent.com/43ab4bbeb0ce07831a1945fde58e88bc0cc14170ac2b1341b3c7597032430c3d/687474703a2f2f6675636b696e6766726f67732e66723a383038302f72696e67732e706e673f77696474683d32303026726573616d706c696e673d626f7826666f726d61743d706e67) |
![](https://camo.githubusercontent.com/4c3e9e4dc8f0b55984bd0e43644e5316db7191b1f335cd09fae2ddb5ded4450d/687474703a2f2f6675636b696e6766726f67732e66723a383038302f6c617267652e6a70673f77696474683d32303026726573616d706c696e673d626f7826666f726d61743d706e67) |
Linear |
![](https://camo.githubusercontent.com/1abc099bc24b7ce30347d11ba03e2caf31bfaa48a64f71bffa67039439b45d20/687474703a2f2f6675636b696e6766726f67732e66723a383038302f72696e67732e706e673f77696474683d32303026726573616d706c696e673d6c696e65617226666f726d61743d706e67) |
![](https://camo.githubusercontent.com/02ec9d86f30f701c6c708cb6275fc7e9e7a598aa7aab80faa350d47d16d79734/687474703a2f2f6675636b696e6766726f67732e66723a383038302f6c617267652e6a70673f77696474683d32303026726573616d706c696e673d6c696e65617226666f726d61743d706e67) |
Cubic |
![](https://camo.githubusercontent.com/0b85278efb2ab3753035b23c5e4049aeeb492cdc6db8479be2eabaaae9a7bf25/687474703a2f2f6675636b696e6766726f67732e66723a383038302f72696e67732e706e673f77696474683d32303026726573616d706c696e673d637562696326666f726d61743d706e67) |
![](https://camo.githubusercontent.com/b433c1938f95d657897e274657d7706ec5eac1d0a208a8619512e4914468b219/687474703a2f2f6675636b696e6766726f67732e66723a383038302f6c617267652e6a70673f77696474683d32303026726573616d706c696e673d637562696326666f726d61743d706e67) |
Lanczos |
![](https://camo.githubusercontent.com/1c1b30656018005eea24a16cad8efb403580995aa12b5fb8d12f7ddfd5aa1c17/687474703a2f2f6675636b696e6766726f67732e66723a383038302f72696e67732e706e673f77696474683d32303026726573616d706c696e673d6c616e637a6f7326666f726d61743d706e67) |
![](https://camo.githubusercontent.com/936d4796fd358db58096c0f8001ca569b89f83313671fd2ea1163e8ae2cd8e86/687474703a2f2f6675636b696e6766726f67732e66723a383038302f6c617267652e6a70673f77696474683d32303026726573616d706c696e673d6c616e637a6f7326666f726d61743d706e67) |
JPEG quality |
Result |
5% |
![](https://camo.githubusercontent.com/4966eca9131ff5ec78601aa86a4fed6f1b0623e418c585c50dc2e925d592c851/687474703a2f2f6675636b696e6766726f67732e66723a383038302f6d656469756d2e6a70673f77696474683d323030267175616c6974793d35) |
10% |
![](https://camo.githubusercontent.com/7e83bf5d89a7017c1301b5a3a15dcff264556749d9fb8783dacf1dc7426cc45c/687474703a2f2f6675636b696e6766726f67732e66723a383038302f6d656469756d2e6a70673f77696474683d323030267175616c6974793d3130) |
50% |
![](https://camo.githubusercontent.com/c405535d3441c0325d5c69b7abf5f18f970dae56978c5f33c61aab3d29632f25/687474703a2f2f6675636b696e6766726f67732e66723a383038302f6d656469756d2e6a70673f77696474683d323030267175616c6974793d3530) |
![](https://camo.githubusercontent.com/ff74f25be4e595935f0f50dcafe9d0780892f86d5e93f8c1148c6c425222f555/687474703a2f2f6675636b696e6766726f67732e66723a383038302f6c617267652e6a70673f77696474683d32303026666f726d61743d676966)
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.