Comments (6)
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.
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.
I got an experimental (untested VIPS) driver for Kirby, wanna try it?
from kirby-imageset.
sure. but i can not do any testing before 17.7.
from kirby-imageset.
can do testing now. where do i find your VIPS driver?
from kirby-imageset.
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.
from kirby-imageset.
Related Issues (20)
- Ignore GIF HOT 2
- Uncaught ReferenceError: el is not defined HOT 2
- Using ImageSet with Asset objects HOT 2
- Thumbnails blacking out during lazyload HOT 2
- How does js and css including work? HOT 1
- FocusCrop and Imageset HOT 1
- readme js file HOT 3
- JS Error in the console HOT 4
- lozad.js HOT 1
- Whitespace at bottom of images HOT 4
- Add `display:block` on `.imageset` to readme HOT 1
- hidden images render at smallest srcset size HOT 1
- Can I set default sizes in imageset.presets? HOT 1
- Integrating imageset.js in my workflow HOT 1
- Security vulnerability in build process HOT 2
- Placeholder is removed before image has lazyloaded
- Saturation issues HOT 3
- How to add an HTML attribute to the img tag HOT 2
- Ignore some images in (image: β¦) kirbytag HOT 6
- Future K3 compatibility? HOT 5
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 kirby-imageset.