The online image compressor. Reduce image size of JPEG, PNG files online. Compress images and photos for displaying on web pages.
Compressing image with HTML5 canvas.
- Read the files using the HTML5 FileReader API.
Image file to base64 format.
- Send the image to the canvas. The canvas size is set to desired output size.
- On backend, read the dataURI, decode from Base64, and save it
GitHub: https://github.com/andy6804tw/compressor
Website: https://andy6804tw.github.io/compressor/