scottcheng / cropit

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

Intended Behaviour? cropit('imageSrc') returning data uri when set with image url #173

Open gpfunk opened 8 years ago

gpfunk commented 8 years ago

First off, the rewrite is great, much smoother experience now.

In the docs it says:

// Returns the source of current image.
// If the image is loaded through the file input, the image source will be
// in Data URI format.
$imageCropper.cropit('imageSrc');

Yet when I set it with

$imageCropper.cropit('imageSrc', 'http://{some-image}'

and then call the previous method it still returns in the Data URI format

I've looked through the code and it looks like this is the intended behaviour.

I can try to put together a PR if thats not what your wanting, or I'll just work around it in my application.

Thanks