Feature Request: Blurhash or similar image placeholder implementation #818
Replies: 2 comments 1 reply
-
Thank you for the kind words @ted-too! This is a good call. This honestly may be best solved via hooks, or even a plugin, but if you were to wrap up your code in a nice plugin that could be re-used, that would be amazing. In the future it could be worked into the core but I am not sure when the Payload team could commit to building this internally. Does your implementation work currently? |
Beta Was this translation helpful? Give feedback.
-
Thumbhash is better algorithm than blurhash. It gives better image (subjective, but in most cases it looks more appealing) and comparable or smaller sizes (except for transparent images). |
Beta Was this translation helpful? Give feedback.
-
First of all I would just like to say what a job guys bravo! I recently discovered payload and my goodness what a product.
Anyway as the title states I think adding a native blurhash implementation to upload collections would be amazing and not too difficult. I am currently using my own half-baked implementation with cloudinary but I have only gone as far as to generate and store the blurhashes for images.
Right now all images on the admin panel do not have placeholders therefore layouts with images are not optimal.
My Implementation:
Used in a beforeChangeHook on a media(upload) collection after an image is uploaded to cloudinary #220
Beta Was this translation helpful? Give feedback.
All reactions