nerdgeschoss / shimmer

Shimmer is a collection of Rails extensions that bring advanced UI features into your app and make your life easier as a developer.
https://nerdgeschoss.de
MIT License
5 stars 1 forks source link

Webp support and blurred-in loading for image_tag #81

Open jmarsh24 opened 11 months ago

jmarsh24 commented 11 months ago

Shimmer currently uses minimagick and jpg for overwriting the images. The images are loaded via baseline (top to bottom) which is very ugly. We should be using webp, vips instead! This will increase the lighthouse score for images generated with image_tag.

In order to make it more beautiful, the proposal is also to incorporate a blur-in transition. Where at 10x10px image hash is saved to the database and rendered inline and blurred. When the image loads it will overwrite this.

Acceptance Criteria