#cropperjs

[ follow ]
fromSitePoint Forums | Web Development & Design Community
1 week ago

Cropper js - Cropper grid issue - Help please!

To fix, you'll want to wait for the image itself to load before initializing CropperJS. Something like: const img = document.getElementById('editorImage'); img.onload = () => { new Cropper(img, { /* options */ }); };
jQuery
[ Load more ]