搭建过程 1 docker run --name tinypng -d -p 9000:9000 h2non/imaginary -enable-url-source -cors 使用方法 原始图片 1 http://media.freshfresh.com/media/catalog/product/1/_/1_44_61.jpg 小图 1 http://server.host.com:9000/crop?width=100000000&url=http://media.freshfresh.com/media/catalog/product/1/_/1_44_61.jpg 关于imaginary Supported image operations Resize Enlarge Crop Rotate (with auto-rotate based on EXIF orientation) Flip (with auto-flip based on EXIF metadata) Flop Zoom Thumbnail Configurable image area extraction Embed/Extend image, supporting