Giter Club home page Giter Club logo

Comments (6)

fabianmichael avatar fabianmichael commented on September 4, 2024

I already tried that one, but performance and memory usage also do not seem to be very good. Still thinking of better ways of how to handle this, but the main issue remains the same for all of those libs: They have to load the whole image into memory and analyse a whole lot of pixels. Same problem I also got for testing whether an image has an alpha channel or not (takes painfully long on the server, but speeds up placeholder rendering in the frontend a lot). For larger images, I already started to create temporary thumbnails, because it reduces memory usage dramatically. Largest speed bump would be possible by creating the temporary thumbnail faster.

Only solution I stumbled upon: VIPS would allows way faster image processing from the command-line, than imagemagick or GD, but is an extra tool a user has to install on his/her server in order to make it work. Not sure yet, if it’s worth the effort …

from kirby-imageset.

bnomei avatar bnomei commented on September 4, 2024

my usual setup is photos directly from camera and clients perfer color preview over blured image. but thier servers (about 10€/month) are not fast/memory strong enogh to handle color extraction from raw file.
you mentioned using a thumb for detection instead of raw file. that would be great. is there a setting to define its max width/scale yet?
i have a lot of image focused projects lately so looking into vibs might be worth it. i will check if i can install it on a current project and report back.

from kirby-imageset.

fabianmichael avatar fabianmichael commented on September 4, 2024

I got an experimental (untested VIPS) driver for Kirby, wanna try it?

from kirby-imageset.

bnomei avatar bnomei commented on September 4, 2024

sure. but i can not do any testing before 17.7.

from kirby-imageset.

bnomei avatar bnomei commented on September 4, 2024

can do testing now. where do i find your VIPS driver?

from kirby-imageset.

fabianmichael avatar fabianmichael commented on September 4, 2024

Here it is. But please be careful, I just wrote that down without testing it a single time. The driver installs as a separate plugin.

vips.zip

from kirby-imageset.

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.