超好用的图片处理工具,可配合minio实现如阿里云的图片处理查询
|
|
3 сар өмнө | |
|---|---|---|
| .github | 7 сар өмнө | |
| .lefthook | 11 сар өмнө | |
| assets | 3 сар өмнө | |
| bufpool | 2 жил өмнө | |
| bufreader | 4 жил өмнө | |
| config | 5 сар өмнө | |
| cookies | 1 жил өмнө | |
| docker | 5 сар өмнө | |
| docs | 2 жил өмнө | |
| errorreport | 1 жил өмнө | |
| etag | 1 жил өмнө | |
| examples | 1 жил өмнө | |
| gliblog | 2 жил өмнө | |
| heroku | 1 жил өмнө | |
| httprange | 1 жил өмнө | |
| ierrors | 1 жил өмнө | |
| imagedata | 3 сар өмнө | |
| imagemeta | 11 сар өмнө | |
| imagetype | 6 сар өмнө | |
| imath | 2 жил өмнө | |
| k6 | 2 жил өмнө | |
| logger | 6 сар өмнө | |
| memory | 3 сар өмнө | |
| metrics | 5 сар өмнө | |
| options | 3 сар өмнө | |
| processing | 3 сар өмнө | |
| reuseport | 3 сар өмнө | |
| router | 1 жил өмнө | |
| security | 8 сар өмнө | |
| structdiff | 1 жил өмнө | |
| svg | 5 сар өмнө | |
| testdata | 9 сар өмнө | |
| transport | 3 сар өмнө | |
| version | 4 сар өмнө | |
| vips | 3 сар өмнө | |
| .clang-format | 2 жил өмнө | |
| .dockerignore | 4 жил өмнө | |
| .gitignore | 5 сар өмнө | |
| .golangci.yml | 11 сар өмнө | |
| BENCHMARK.md | 1 жил өмнө | |
| CHANGELOG.md | 3 сар өмнө | |
| LICENSE | 8 жил өмнө | |
| Makefile | 5 сар өмнө | |
| NOTICE | 2 жил өмнө | |
| README.md | 3 сар өмнө | |
| SECURITY.md | 3 жил өмнө | |
| app.json | 1 жил өмнө | |
| build-docs-sitemap.sh | 4 жил өмнө | |
| errors.go | 1 жил өмнө | |
| fix_path.go | 3 жил өмнө | |
| go.mod | 5 сар өмнө | |
| go.sum | 5 сар өмнө | |
| healthcheck.go | 2 жил өмнө | |
| heroku.yml | 6 жил өмнө | |
| landing.go | 9 сар өмнө | |
| lefthook.yml | 1 жил өмнө | |
| logo.svg | 6 жил өмнө | |
| main.go | 5 сар өмнө | |
| pprof.go | 3 сар өмнө | |
| processing_handler.go | 7 сар өмнө | |
| processing_handler_test.go | 11 сар өмнө | |
| server.go | 5 сар өмнө | |
| stream.go | 6 сар өмнө |
Website | Blog | Documentation | imgproxy Pro
imgproxy is a fast and secure standalone server for resizing, processing, and converting images. The guiding principles behind imgproxy are speed, security, and simplicity.
imgproxy is able to quickly and easily resize, process, and optimize images on the fly, and it's well-equipped to handle a large amount of image processing. imgproxy is a drop-in replacement for all the image processing code inside your web application (such as using image processing libraries or calling command-line tools). With imgproxy, you don’t need to repeatedly re-prepare images to fit your design every time it changes, as imgproxy does this on demand.
To get an even better introduction and to dive deeper into the nitty-gritty details, check out this article by Evil Martians: imgproxy: Resize your images instantly and securely
Photo by Joshua Patton
imgproxy is packed with features to the brim to cover all your image processing needs:
| Feature | imgproxy OSS | imgproxy Pro |
|---|---|---|
| Image formats | Basic formats: JPEG, PNG, GIF, WebP, AVIF, JPEG XL, and more | Preview generation for video, PDF, and Photoshop documents |
| Processing | Resizing, cropping, rotating, watermarking, filters | Getting image info, advanced watermarking, color adjustment |
| Optimization | Color profile and metadata stripping, PNG quantization | Advanced compression settings, GIF to MP4 conversion, SVG minification |
| Smart features | Simple smart cropping, auto-quality by file size | Object detection, advanced smart cropping, auto-quality by SSIM, best format selection |
Check out the full feature list for more details.
imgproxy works as a standalone HTTP server. You provide it with a source image URL and a set of processing options via a specially crafted URL, and imgproxy fetches the image, processes it according to your specifications, and serves the resulting image back to you. You can use imgproxy URLs directly in your HTML, CSS, or JavaScript code, just like you would with any other image URL.
This way, imgproxy offloads all the image processing work from your application. The only thing your application needs to do is to generate imgproxy URLs with the desired processing options.
Keep it simple, stupid!
We believe that software should be simple yet powerful. If your grandma can't get it up and running, you should make it simpler. That's why we designed imgproxy to be ready to use in a couple of minutes with minimal configuration. Check out the Getting Started guide to see how easy it is.
No code is better than no code.
We believe in the single responsibility principle. If something can be done better outside of imgproxy, we won't reinvent the wheel. As a couple of examples:
We strive to tune every little piece of imgproxy to make it as fast as possible.
imgproxy takes advantage of probably the most efficient image processing library out there – libvips. It’s scary fast and comes with a very low memory footprint. Our extensive experience with libvips has enabled us to optimize our image-processing pipeline to its maximum.
You can take a look at some benchmarking results and compare imgproxy with some well-known alternatives in our benchmark report.
Image processing is a wide attack surface. That's why we treat security very seriously. imgproxy offers several security measures that enable you to strike the optimal balance between security and usability for your specific use case. For example:
Check out our documentation for more details on security features.
The easiest and recommended way to run imgproxy is using Docker. It's just a matter of a single command:
docker run -p 8080:8080 -it ghcr.io/imgproxy/imgproxy:latest
That's it! imgproxy is ready to accept image processing requests at http://localhost:8080.
Check out the Getting Started guide for a step-by-step tutorial on how to get your first image processed with imgproxy.
You can find the full documentation at docs.imgproxy.net.
imgproxy is not a side project; it's what we do for a living. We work hard to make it better every day. If you find imgproxy useful and want to support its development, here are some ways you can do that:
Many thanks to:
imgproxy is licensed under the MIT license.
See LICENSE for the full license text.
To report a security vulnerability, please contact us at security@imgproxy.net. We will coordinate the fix and disclosure.