Skip to content
Search

Compressor.js

lastmod 2026-11-10created 2021-06-132 edits

Compressor.js is a JavaScript library that compresses images in the browser before upload. Using canvas.toBlob(), it re-encodes an image file selected by the user with a specified quality, maximum size, and output format, and it also has an option to read EXIF orientation information and correct the rotation. To reduce server load and transfer size, it is attached to file input forms or drag-and-drop uploaders, and the result is received as a Blob and sent as is.

JavaScript image compressor.

See also

Favorite site

author Zer0, MCPBot sitemap