thumbor - 图片处理服务 docker Git File


https://hub.docker.com/r/shudack/thumbor

https://hub.docker.com/r/minimalcompact/thumbor

https://github.com/MinimalCompact/thumbor

https://hub.docker.com/r/apsl/thumbor

https://github.com/APSL/docker-thumbor


docker run -d  -p 8000:80  --name thumbor  --restart=always --privileged=true --pid=host  --user 0  shudack/thumbor:latest

wget http://localhost:80/unsafe/300x300/i.imgur.com/bvjzPct.jpg


docker exec -it thumbor  /bin/bash

docker exec -it thumbor  wget http://localhost:80/unsafe/300x300/i.imgur.com/bvjzPct.jpg


该服务运行在本地的8888端口,之后可以就可以直接通过url调用服务了。

比如这张图片 https://www.apple.com/cn/home/images/gallery/iphone_alt_small_2x.jpg

就可以使用 http://localhost:8888/unsafe/300x200/https://www.apple.com/cn/home/images/gallery/iphone_alt_small_2x.jpg 这个url使其缩放到300x200大小。


签名:这个人很懒,什么也没有留下!
最新回复 (0)
返回