-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New LQIP alternative #116
Comments
@transitive-bullshit First of all: Thank you for caring about web performance and esp. user experience regarding images. I love your effort! I'm glad you like SQIP's approach. @axe312ger has done an incredible job here. On the areas you'd like to discuss: Regarding 2): Regarding 3): Ergo, the same problem will affect your current approach of LQIP-Modern's client-side blur. And unlike SQIP - which because of its SVG basis has no other choice - it is a problem that you don't NEED to have because your approach uses raster images formats (WebP/JPEG). I would therefore recommend that you apply blur on the LQIP image during creation. The "sharp" library already provides blur (see https://sharp.pixelplumbing.com/api-operation#blur):
This way, users exposed to LQIP-Modern placeholder images do not have to "suffer" from paying the cost of blurring on their devices. Also, due to the way that lossy image compression works, the blurred 16px image will compress to a smaller bytesize than the unblurred variant. Another easy win for you. ;) If you want to deep-dive, feel free to create an image gallery grid-layout, use SQIP on one variant and a pre-blurred LQIP variant on the other and then measure rendering + scrolling performance (see my comment on "Jank" above) to get a feeling for how much client-side blur costs. Regarding 1):
Again, thank you for your efforts and pinging us here at SQIP. <3 |
Thanks for this extenden reply @technopagan pretty busy right now but very open to all PRs! |
This removes the need for CSS blurring, see axe312ger/sqip#116 (comment)
Hey 👋
First off, I want to say that you folks have done an amazing job with
sqip
. The entire project is really impressive and I really loved the detailed comparison demo.In the spirit of collaboration, I wanted to present a new take on LQIP which closely resembles Medium's approach: lqip-modern.
There are definitely tradeoffs with all of these different approaches, but for our use case, this approach provided the best combination of results in terms of visual fidelity, encoded image size, and encoding speed.
I also forked sqip's demo for lqip-modern's demo because I liked the setup so much.
Finally, you can see the completed LQIP effect in all its glory on this demo page: https://demo.notion2site.com/image-sizing-3492bd6dbaf44fe7a5cac62c5d402f06.
I'm creating this issue to start a discussion around a few areas:
What do you think of this approach and the tradeoffs compared with
sqip
potrace
,blurhash
, and other LQIP techniques?Would you be open to a PR adding
lqip-modern
's default output to the sqip demo?I want to make sure that the benchmarks I'm presenting are correct and unbiased -- would love to get some feedback on this front. Specifically,
lqip-modern
is really only meant to be used blurred client-side, so this is something that I added to my fork ofsqip
's demo, but it's not currently blurring the non-lqip results. Thoughts here?Thanks!
The text was updated successfully, but these errors were encountered: