Croppr.js
A vanilla JavaScript image cropper that's lightweight, awesome, and has absolutely zero dependencies.
No-build verifiedDormant0 dependenciesScript tagTypes bundledMIT
Facts
| Size | 19.6 KB minified, 5.3 KB gzipped (dist/croppr.js) |
|---|---|
| Licence | MIT |
| Dependencies | none |
| Last release | v2.3.1, July 2018 |
| Last activity | 2022-12-06 (Dormant) |
| Stars | 392 on GitHub |
| Formats | classic script (global Croppr); TypeScript types in the package |
| CDN hits | 93,816 a month on jsDelivr |
| npm downloads | 36,721 a month |
| Gates | G1 passed (no runtime dependencies); G2 passed (loads in a browser as it is); G3 passed (no compile-only entry points); G4 passed (open-source licence); G5 passed (not archived or deprecated). Smoke test on v2.3.1 in headless Chromium, 2026-10-30 |
Load it
Pin the version. The hash is computed from the file jsDelivr serves, so a changed file fails to load instead of running.
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/croppr.js"
integrity="sha384-pR1YPik6jdraGDapoGPuTQZ0nrlf5ughfoyooHyid5Hn/tmXo6aYomKb+IMnxd+j" crossorigin="anonymous"></script>Advertisement
Related libraries
- DragSelect An easy JavaScript library for selecting and moving elements. With no dependencies. Drag-Select & Drag-And-Drop. – Examples:
- PulltoRefresh.js A quick and powerful plugin for your pull-to-refresh needs in your webapp.
- Slip Slip.js — UI library for manipulating lists via swipe and drag gestures
Entry 149 in the directory. Facts refreshed monthly; last run 2026-10-30.