Comments (9)
You can customize the blur by adjusting the stdDeviation in https://github.com/johannschopplich/kirby-blurry-placeholder/blob/main/BlurryPlaceholder.php#L54
from kirby-blurry-placeholder.
Hello there!
You can try to improve the pixel target to generate bigger thumbnails (although not recommended), which are embedded into the blurry SVG placeholder. The implementation mocks the one from Google's former AMP project. I'm not sure what you expected. In my opinion, your placeholders are smooth. Every image is different. So yeah, maybe it's the color contrast.
Regarding transparent images, there is the transparent
option for both $file->placeholder()
and $file->placeholderUri()
field methods. It will omit the artifacts of transparent images.
There is also a different implementation for blurry images using the blurhash
algorithm by @tobimori which you might prefer, since more details is preserved. You can check it out as well: kirby-blurhash
from kirby-blurry-placeholder.
Absolutely! The younger generation builds upon what the older one has created and teaches a lesson or two. Circle of life. 🙃
The Gaussian blur parameter could be a plugin option. 👀
from kirby-blurry-placeholder.
// Edit:
For PNG files with transparency, I get this:
from kirby-blurry-placeholder.
@tobimori Great input! 👏
from kirby-blurry-placeholder.
Thanks you guys! Seems even @johannschopplich learned something 😅 (just kidding)
from kirby-blurry-placeholder.
Not sure about who's the younger generation here 🤣
That's what I ended up with (note the blur in the beginning, the bw-color effect applies to all images, see the end of the clip, when scrolling up again)
lazy_480.mov
from kirby-blurry-placeholder.
The filesize savings are quite decent, and in accordance with the bw effect, with placeholders being generated as bw, this shaves some additional kb 😉
from kirby-blurry-placeholder.
Absolutely! The younger generation builds upon what the older one has created and teaches a lesson or two. Circle of life. 🙃
The Gaussian blur parameter could be a plugin option. 👀
TOTALLY!
from kirby-blurry-placeholder.
Related Issues (20)
- [Question] Best Slider to use with this plugin (and thus loodeer) HOT 2
- Crop & resize on `placeholderUri()` HOT 6
- Handling static assets HOT 3
- Division by zero Error (image inside Structure Field) HOT 5
- Use `<noscript>` tag with default `<img>` element for browsers with disabled JS HOT 1
- Placeholders for GIFs render all frames, which results in larger data (since inlined)
- Add transition when lazily loaded image unveils HOT 3
- Slow loading blurry placeholder image and big file size on live server HOT 6
- Blurry placeholder with WebP and `<picture>` tag HOT 4
- Add asset methods
- Get placeholder data via API/KQL HOT 1
- Placeholder from external image HOT 1
- Update auto sizes on resize HOT 3
- Placeholder image as poster for video? HOT 1
- Artifacts when using transparent images HOT 7
- High-res image wont show up HOT 7
- Srcset conflict HOT 12
- Publish useLazyload as npm package HOT 3
- WebP & AVIF support via `srcset` HOT 7
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-blurry-placeholder.