Next.js Discord

Discord Forum

upload image

Unanswered
MatheusDeveloper posted this in #help-forum
Open in Discord
Good evening everyone, what is the best way to work with images? on the front I use NextImage to optimize and on the back I wanted to understand what would be the best way to store images and make queries on those images
I've seen places where people save the same images at different sizes
and use some image processors to reduce the size and not lose quality
Do you have any tips for this?

3 Replies

@MatheusDeveloper Good evening everyone, what is the best way to work with images? on the front I use NextImage to optimize and on the back I wanted to understand what would be the best way to store images and make queries on those images I've seen places where people save the same images at different sizes and use some image processors to reduce the size and not lose quality Do you have any tips for this?
If you looking just for image optimization, you can use the one from nextjs with the library „sharp“. If you are looking for managing the images, you should create a database with a table like „media“, and save your image keys inside it
@MatheusDeveloper helped?
@MatheusDeveloper ?