Comments (9)
Well, not sure. Probably users should extend dockerfiles themselves as needed. Looks like too much trouble (maintenance) for quite narrow use case.
from thumbor.
@kkopachev any thoughts whether we should include any/all by default?
from thumbor.
I don't have solid opinion here. It's nice to have them in image, but then user have to opt-in in config to use them. On the other hand it's just one-line addition to Dockerfile and anyone can do that themselves.
I am leaning towards pip-installing them, and mention in readme.
from thumbor.
Please note that the plugins will need the required 3rd party apps (optipng, pngcrush and so on...). Those should be added to the Dockerfile as well as some of them are not available in the repos.
from thumbor.
Oh, right. That too. That might be challenging.
Then maybe users should install plugins and apps they need. Some of optimizers counteract each other (imgmig/mozjpeg), some might be redundant (mozjpeg).
🤷♂️
from thumbor.
I ended up exposing the binaries from the host to the container via volumes. That might be an alternative solution.
from thumbor.
From my understanding, there is no guarantee it's gonna work that way. Missing libs and such.
Which optimizers do you use?
from thumbor.
Yes, the binary would need to match the same libraries (check with ldd
). Probably statically compiled binaries will be more helpful here.
I use only optipng.
from thumbor.
Thanks @kkopachev @alexandernst for sharing your thoughts and discussing this.
I think we'll opt out from adding extra plugins for the time being. The base image can be extended if necessary, and it seems like quite a few edge-cases that make it tricky to maintain. I'd keep our minds open though to re-evaluate in future if there are specific use-cases that are compelling.
If you guys don't mind, I'll close this for now, but if there's something worth discussing, feel free to re-open or create a new issue.
from thumbor.
Related Issues (20)
- ARM64 support? HOT 15
- Overwrite the default Thumbor host address 0.0.0.0 HOT 1
- Upgrade to thumbor 7.4.7 HOT 2
- Multiple TC_AWS_LOADER_BUCKET HOT 1
- Switch CI/CD to GitHub Actions HOT 4
- multiarch build fails with SIMD HOT 5
- updating to 7.5.0 HOT 1
- Important omissions in: thumbor/thumbor/conf/thumbor.conf.tpl and duplicated HOT 4
- Parse errors no security at MinimalCompact/thumbor/blob/master/thumbor/conf/thumbor.conf.tpl HOT 5
- Are we affected by CVE-2023-5129 ? HOT 17
- Security Vulnerability - Pillow HOT 2
- Tornado latest version HOT 1
- HTTP request sent, awaiting response... 504 Gateway Timeout HOT 7
- smaller base image HOT 2
- No module named thumbor/server HOT 1
- Cannot import name 'Sentinel' from 'redis' (/usr/local/lib/python3.11/site-packages/redis/__init__.py) HOT 3
- AVIF support not available
- support metrics for multiple instances HOT 11
- Using with local development HOT 5
- Many workers starting and exiting at start up HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thumbor.