1 Repo
Scales images to a specified width and height using contain or cover fit modes.
Distinct from Dimension Resizing: Distinct from Dimension Resizing: targets exact output dimensions with fit mode options, not general layout-constrained resizing.
Explore 1 awesome GitHub repository matching graphics & multimedia · Exact. Refine with filters or upvote what's useful.
Compressorjs is a client-side image compression library that reduces file sizes in the browser before upload, using the HTML Canvas API to re-encode images into smaller File or Blob objects. It supports JPEG, PNG, and WebP formats, with configurable quality and dimension controls to balance file size and visual fidelity. The library distinguishes itself through several integrated capabilities. It reads Exif orientation metadata from JPEG images and automatically rotates or flips the canvas to ensure correct display after compression. An AbortController integration allows cancellation of an in
Resizes images to exact dimensions with contain or cover fit modes.