Releases: felixicaza/astro-lqip
Releases · felixicaza/astro-lqip
v1.6.0
🚀 Features
- Add support to handle strings paths, module-like imports and dynamic imports - by @felixicaza (8e516)
Now you can also put the image path as string directly in the src prop. Support absolute paths in src folder, relative paths and alias.
Example with absolute path:
---
import { Image, Picture } from 'astro-lqip/components';
---
<Image src="/src/assets/images/image.png" alt="Cover Image" width={220} height={220} />
<Picture src="/src/assets/images/other-image.png" alt="Other Image" width={220} height={220} />Example with relative path:
---
import { Image, Picture } from 'astro-lqip/components';
---
<!-- assuming you are on the path `/src/pages/index.astro` -->
<Image src="../assets/images/image.png" alt="Cover Image" width={220} height={220} />
<Picture src="../assets/images/other-image.png" alt="Other Image" width={220} height={220} />Example with alias:
---
import { Image, Picture } from 'astro-lqip/components';
---
<Image src="@/assets/images/image.png" alt="Cover Image" width={220} height={220} />
<Picture src="@/assets/images/other-image.png" alt="Other Image" width={220} height={220} />View changes on GitHub
v1.5.0
🚀 Features
- Add support for SSR mode for LQIP generation with Node Adapter - by @felixicaza (65bb3)
View changes on GitHub
v1.4.1
🐞 Bug Fixes
- Add ImagePath type and update resolveImagePath function to handle dynamic imports - by @felixicaza (fc9e5)
View changes on GitHub
v1.4.0
🚀 Features
- Add support to generate lqip from remote images - by @felixicaza (34921)
View changes on GitHub
v1.3.2
🐞 Bug Fixes
- styles: Adjust opacity and z-index for lqip image when JavaScript is disabled - by @felixicaza in #12 (becd4)
View changes on GitHub
v1.3.1
🐞 Bug Fixes
- refactor: Improve Image and Picture components in lqip CSS management - by @felixicaza (e19bf)
View changes on GitHub
v1.3.0
🚀 Features
- Image:
- Add support for Image component - by @felixicaza (be6c3)
- Add parentAttributes handling and warn against forbidden CSS variables - by @felixicaza (2365e)
View changes on GitHub
v1.2.2
🐞 Bug Fixes
- Picture: Add support for
pictureAttributesprop - by @felixicaza in #4 (77c4a)
View changes on GitHub
v1.2.1
No significant changes
View changes on GitHub
v1.2.0
🚀 Features
- Picture:
- Enhance LQIP generation with support for multiple types - by @felixicaza (0fd47)
- Add lqipSize prop for configurable LQIP image size - by @felixicaza (a36d6)