T
TanStack•5mo ago
equal-aqua

Is there any package available for optimizing images similar to next/image?

.
5 Replies
equal-jade
equal-jade•5mo ago
Unpic
@unpic/react – Unpic
High-performance, responsive image components for React and Next.js
rare-sapphire
rare-sapphire•5mo ago
thank you @Jaga Santagostino your a life saver with the above suggestion. this in fact is so dam helpful to someone comparing tanstack start to there current say nextjs instance, i'm wondering if this should be suggested within the tanstart start docs as a path to migrate from nextjs? thoughts @Tanner Linsley ? p.s. i'm new here.
inland-turquoise
inland-turquoise•5mo ago
once its stable probably
ratty-blush
ratty-blush•3w ago
They're supposedly building their own Image component
foreign-sapphire
foreign-sapphire•3w ago
I've been using https://github.com/lovell/sharp to convert my images to webp and resize them. Unpic is good for images hosted on a CDN 🙂
GitHub
GitHub - lovell/sharp: High performance Node.js image processing, t...
High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, AVIF and TIFF images. Uses the libvips library. - lovell/sharp

Did you find this page helpful?