I recently figured out a way to resize images without a backend.
This was particularly useful when trying to cut down on costs(through not using APIs) by resizing images on the frontend since most browsers support this.
Also, it doesn't require a node package that could have vulnerabilities. Just pure and simple browsers APIs. It also supports png, jpeg, gif, avif, and webp(all image formats that are supported by a browser).
1 comment
[ 1.3 ms ] story [ 10.8 ms ] threadThis was particularly useful when trying to cut down on costs(through not using APIs) by resizing images on the frontend since most browsers support this.
Also, it doesn't require a node package that could have vulnerabilities. Just pure and simple browsers APIs. It also supports png, jpeg, gif, avif, and webp(all image formats that are supported by a browser).
idk thought this was cool to share...