image icon indicating copy to clipboard operation
image copied to clipboard

Suppport for BlurHash on placeholder

Open niklasfjeldberg opened this issue 2 years ago • 12 comments

Are there any plans to add support for the format BlurHash for placeholders? At a minimum support for showing BlurHash images.

image

niklasfjeldberg avatar Sep 30 '23 10:09 niklasfjeldberg

ThumbHash can also be considered as an option

图片

everyx avatar Oct 09 '23 13:10 everyx

Considering variaties of ways to generate blured images, i am thinking a pluggable method for image module to support them would make better sense.

pi0 avatar Oct 09 '23 13:10 pi0

upvoted

tewnut avatar May 19 '24 02:05 tewnut

This would make a great addition!

oikalyptus avatar Jun 27 '24 10:06 oikalyptus

That would be nice.

Resumane avatar Jul 06 '24 04:07 Resumane

agreed

EdmundChaplin avatar Sep 05 '24 14:09 EdmundChaplin

would love to see any interest in this.

M-GRV avatar Mar 24 '25 04:03 M-GRV

I will look into adding both thumbhash and blurhash soon as a PR.

M-GRV avatar Mar 25 '25 13:03 M-GRV

Hi @M-GRV, that's a great option and enhancement.

I have personally combined Nuxt/Image with @unlazy/nuxt and think that was the best at the time.

Blurhash support for Nuxt/Image may be best to orient on the implementation of it in the unlazy project (so you don't have to re-invent the wheel):

https://github.com/johannschopplich/unlazy

chrisspiegl avatar Mar 25 '25 13:03 chrisspiegl

Hi @M-GRV, that's a great option and enhancement.

I have personally combined Nuxt/Image with @unlazy/nuxt and think that was the best at the time.

Blurhash support for Nuxt/Image may be best to orient on the implementation of it in the unlazy project (so you don't have to re-invent the wheel):

https://github.com/johannschopplich/unlazy

@chrisspiegl

I am currently using that, but there are times when I don't need to use lazy loading of images for above the fold headers etc, but I still need a placeholder of a thumbhash.

I included a PR, but the creator of unlazy just marked it as not planned, stating if you don't want an image lazy loaded, don't use unlazy, so I am forced to look elsewhere for this specific use case. I don't wish to maintain a separate fork and there is nothing else available.

Otherwise, I recommend unlazy.

M-GRV avatar Mar 25 '25 14:03 M-GRV

This has been added to unlazy!

M-GRV avatar Mar 28 '25 16:03 M-GRV

For clarification: the ability to “lazy load or not” has been added to unlazy. The request still stays open for Nuxt/Image to add BlurHash support (or be based on unlazy as an alternative).

chrisspiegl avatar Mar 30 '25 19:03 chrisspiegl