scottcheng / cropit

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

Use cropit WITHOUT image input #233

Open vivekiyer114 opened 7 years ago

vivekiyer114 commented 7 years ago

Can anyone show how to use cropit with my custom image image. I dont want to use image by taking input.I want to use my own image.

Please help ! Thank you !

charles-passille-smartnets commented 7 years ago

@vivekiyer114 What are you even saying?

This?

$('.image-editor').cropit({
        imageState: {
          src: '/img/whatever.jpg',
        },
});
vivekiyer114 commented 7 years ago

Yes sir,I was looking for this only. I think i didnt see that code until now.

Thank you very much !

On Mon, Jan 30, 2017 at 10:29 AM, charles-passille-smartnets < notifications@github.com> wrote:

@vivekiyer114 https://github.com/vivekiyer114 What are you even saying?

This?

$('.image-editor').cropit({ imageState: { src: '/img/interior.jpg', }, });

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/scottcheng/cropit/issues/233#issuecomment-275980442, or mute the thread https://github.com/notifications/unsubscribe-auth/AQbsDXZA9pYyzyQtbeEehqYODOI0Nc4uks5rXW44gaJpZM4LpV7G .