scottcheng / cropit

A "customizable crop and zoom" jQuery plugin.
http://scottcheng.github.io/cropit/
MIT License
874 stars 305 forks source link

init and then imageSrc #166

Closed rajankapila closed 8 years ago

rajankapila commented 8 years ago

This happens with the new dist file on init and then loading an imageSrc TypeError: previewSize is undefined jquery.cropit.js Line 660


$('#image-editor').cropit({imageState : {'src' : src}});
scottcheng commented 8 years ago

Most likely you need to change .cropit-image-preview to .cropit-preview. I just put together a migration guide to 0.5 in README.