70gb+ over on file bandwidth
This was my bad - i didn't compress images to smaller sizes on upload. My website is getting slammed with requests, and I'm not using an image optimizer. Would using an image optimizer help me reduce file bandwidth? (need to live with the large images on in convex storage for now).
My frontend is on tanstack start. Would using this image optimzer https://github.com/andrelandgraf/openimg , and placing the optimizer endpoint inside a convex http action help ? Any recommendations on what I can do?
GitHub
GitHub - andrelandgraf/openimg: Image optimization packages & tools
Image optimization packages & tools. Contribute to andrelandgraf/openimg development by creating an account on GitHub.
3 Replies
Why not store images in cdn and use cdn url to show them? Or if speed is not an issue then r2 or s3 bucket also works
thanks, yeah i talked with convex support. My mistake was not compressing the images on upload. Seems like using sharp node package in a convex action, resizing and then storing a compressed version of the image that I can then reference is the solution. An image optimization endpoint wont reduce the file bandwidth
got it makes sense thanks