Giter Site home page Giter Site logo

Add libvips about docker-images-php HOT 2 OPEN

uuf6429 avatar uuf6429 commented on July 19, 2024
Add libvips

from docker-images-php.

Comments (2)

mistraloz avatar mistraloz commented on July 19, 2024

I can't take your request for instance but i keep it in the enchancement list for instance.
Also, probably we will not implement custom extention (like libvips) for the fat images (we have to limit the size of the images). But we may imagine another command instead of "startup_command" (something like "init_command" to be run only at the first boot of the container).

PS: Personally, I looked for several options for image comparison and fell back on OpenCV through a python wrapper (not perfect for maintainability but very efficient : the only complexity is to save the image in filesystem, so i got some delay related and i had to implement lof of cache feature to limit that). I'm very curious about libvips capabilities.

from docker-images-php.

uuf6429 avatar uuf6429 commented on July 19, 2024

But we may imagine another command instead of "startup_command" (something like "init_command" to be run only at the first boot of the container).

The biggest problem (which is also totally not your fault) is that either way installation through apt-get is relatively slow because we always need to update(the indexes) first, and then there's also extra package dependencies. I've also had trouble in the past with apt-get in pipelines - from time to time their update services breaks (for a whole day, for example), causing us to be stuck until it's fixed.

In cases like this, the best solution is either a pre-built image or custom docker image.
(I'm not trying to convince you, just stating the facts.)

Personally, I looked for several options for image comparison and fell back on OpenCV through a python wrapper

I was considering taking that approach by building a native php library in rust connecting to OpenCV.
But in either case there are a lot of dependencies: rust+php-dev+opencv or php+python+opencv - plus, apparently opencv is quite heavy on dependencies itself (I had some minor trouble installing it in brew).

On the other hand, libvips was easier to set up: installing libvips, installing composer package, ensuring php has ffi enabled, done.
Additionally, the code I got from their forum almost worked perfectly the first try and it felt incredibly fast.

That's just my personal experience.

keep it in the enchancement list for instance.

Fine with me! 👍

from docker-images-php.

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.