Imagor支持 Docker 的圖像處理服務器
Imagor 是一個用 Go 和 libvips 編寫的快速、支持 Docker 的圖像處理服務器,使用 Thumbor URL 語法。
Imagor使用的是最高效的圖像處理庫libvips(含govips)之一。它通常比使用最快速的ImageMagick和GraphicsMagick設置要快4-8倍。
Imagor是一個易于擴展的Go庫,可以在任何Unix環(huán)境下安裝和使用,并且可以使用Docker進行容器化。
Imagor采用了Thumbor的URL語法,涵蓋了大部分的網(wǎng)絡圖像處理用例。如果這些符合你的要求,Imagor將是一個輕量級的、高性能的替代者。
Quick Start
docker run -p 8000:8000 shumc/imagor -imagor-unsafe
嘗試以下圖片網(wǎng)址:
# original images
https://raw.githubusercontent.com/golang-samples/gopher-vector/master/gopher.png
https://raw.githubusercontent.com/golang-samples/gopher-vector/master/gopher-front.png
http://localhost:8000/unsafe/500x500/top/https://raw.githubusercontent.com/golang-samples/gopher-vector/master/gopher.png
http://localhost:8000/unsafe/fit-in/500x500/filters:fill(white):format(jpeg)/raw.githubusercontent.com/golang-samples/gopher-vector/master/gopher.png
http://localhost:8000/unsafe/fit-in/-500x500/filters:hue(290):saturation(100):fill(yellow):format(jpeg):quality(80)/raw.githubusercontent.com/golang-samples/gopher-vector/master/gopher.png
http://localhost:8000/unsafe/fit-in/800x800/filters:fill(white):watermark(raw.githubusercontent.com/golang-samples/gopher-vector/master/gopher-front.png,repeat,bottom,10):format(jpeg)/raw.githubusercontent.com/golang-samples/gopher-vector/master/gopher.png
評論
圖片
表情
