Imagor: A fast, Docker-ready image processing server written in Go
github.com
github.com
A bit of our background: we have been a long time user of Thumbor, with millions of images serving under it and applications built around the Thumbor syntax. However Thumbor is not quite in active development anymore. Support is getting stale, and its stable version is still using Python 2.
So we started to look to alternatives. We wanted to keep the Thumbor syntax as it is a pretty good one, and we want no disruption to our existing image urls being created, and applications that built around it. So we wanted a drop-in replacement. We studied closely with Imaginary and Imgproxy which both are made with Go and libvips. Imgproxy is a pretty solid one, but we are not happy it is charging for premium, even for common features like Chained pipelines (a.k.a filters). Imaginary is very popular, but the feature parity gap is pretty large between Imaginary and Thumbor, with ongoing memory issues and the author seems not interested in maintaining it recently. And most importantly, neither of both sides are interested in adopting Thumbor's URL syntax. And building a proxy around them would be a half baked solution, as their high level APIs are unlikely meet the Thumbor's feature parity. And so we decided to do the hard work and here it is.
We have already implemented all features we need and it is working great for us in production. The S3 Loader/Storage is battle tested, but the file store is not though. We do acknowledge it has a long way to go to meet the Thumbor's feature parity. But this is just our first step and of course we wanna keep pushing it.
(I also looked for fuzz tests up the chain; libvips -> govips -> imagor, and didn't find any.)
https://github.com/google/oss-fuzz/tree/a21768ce6a5056d27f82...
I thought they mostly fuzz the loaders, which are the most critical, apparently the found bugs present a picture of a pretty wide coverage:
https://bugs.chromium.org/p/oss-fuzz/issues/list?can=1&q=Lib...
As of June 2021, OSS-Fuzz has found over 30,000 bugs in 500 open source projects.
Context/disclaimer: I've been maintaining the docker image for thumbor[0] (not maintaining thumbor itself, although I work with the thumbor team occasionally). Thumbor works great for us at my company, but it's still python 2.x based. There's some work to transition to python 3.x, but it seems[1] like there are not enough resources or drive to push this forward? and thumbor 7 does not (yet) have feature parity with thumbor 6.
I'm yet to find something that has feature-parity with thumbor though... But it definitely feels like high time for a some new blood in this space. Especially compared against some of the cloud options out there, like Cloudflare Images, especially since they seem to be also lacking some crucial features[2].
[0] https://github.com/MinimalCompact/thumbor/
So ideally something like:
1. upload to s3
2. manipulate image to a friendly size (ie. 2048x2048)
3. write the image to an LRU cache (ie. memcached)
with steps 2 and 3 on a separate go-routine
Besides that, really cool project :)
[0] https://github.com/MinimalCompact/thumbor/#minimal-compact-t...
disclaimer: I maintain the docker images for thumbor[0]
It looks Imagor can save/cache the resulting files in S3. If so that’s a great benefit since Imaginary does not support it and you have to use a CDN.
Do I understand it correctly that Imagor can transform the image from URL and store the results to S3 and next time the same image is requested it is not transformed again but returned from S3?