Sawyer Click

Results 4 comments of Sawyer Click

Would love to see `lqip` as an option for the `picture` directive's fallback

this is how I currently do this: ```js const pictures = import.meta.glob( '/path/to/assets/*.{heic,heif,avif,jpg,jpeg,png,tiff,webp,gif,svg}', { query: { format: 'webp;avif;jpg', width: '300;600;1200', picture: '', flatten: '', background: '#ffffff' }, import: 'default', eager:...

This would involve some logic to be written into [format.ts](https://github.com/sawyerclick/imagetools/blob/main/packages/core/src/transforms/format.ts#L1) to allow for format-specific options to be passed. If we were to add `mozjpeg`, it would open the door to...

Really interested in this, though I wonder how it could work with multivariant queries. Should imagetools's default be to have image names mirror the queries (favicon_180w_180h.png)? Then if `name=custom_name` is...