....
less than 2KB gzip
No dependencies
small footprint
Cross-browser support
Touch enabled
Pinch gesture
Supports zooming
Supports to crop
Supports touch
Supports any images format
Supports url and data url
Supports file
import { Cropo } from 'cropo';
const { Cropo } = require('cropo');
const cropo = new Cropo({ imageUrl: image, canvas: document.getElementById('canvas'), rangeInput: document.getElementById('inputRange') })
// download canvas image cropo.download(); // get image as data url cropo.getDataUrl();
add OnImageLoad callback - add support for multiple image whit Cropo class - add ability to crop image directly - now fit content can be disabled - make canvas resizable - download image whit custom size
replace mouse and touch eventListeners whit pointer eventListeners - add zoom function - add basic documentation - add commonJs and EsModule support - replace parcel whit microbundle