Git Product home page Git Product logo

Comments (9)

kkopachev avatar kkopachev commented on August 12, 2024 1

Well, not sure. Probably users should extend dockerfiles themselves as needed. Looks like too much trouble (maintenance) for quite narrow use case.

from thumbor.

gingerlime avatar gingerlime commented on August 12, 2024

@kkopachev any thoughts whether we should include any/all by default?

from thumbor.

kkopachev avatar kkopachev commented on August 12, 2024

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.

alexandernst avatar alexandernst commented on August 12, 2024

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.

kkopachev avatar kkopachev commented on August 12, 2024

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.

alexandernst avatar alexandernst commented on August 12, 2024

I ended up exposing the binaries from the host to the container via volumes. That might be an alternative solution.

from thumbor.

kkopachev avatar kkopachev commented on August 12, 2024

From my understanding, there is no guarantee it's gonna work that way. Missing libs and such.
Which optimizers do you use?

from thumbor.

alexandernst avatar alexandernst commented on August 12, 2024

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.

gingerlime avatar gingerlime commented on August 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.