MattKetmo / darkroomjs

Extensible image editing tool in your browser
https://mattketmo.github.io/darkroomjs
MIT License
1.41k stars 406 forks source link

Place crop area on image on init #73

Closed ZaneCEO closed 8 years ago

ZaneCEO commented 8 years ago

Hi, I'm switching from jCrop to Darkroom.js. I need to set the cropping area on init so that the user finds the cropping grid already placed on the image on load. In jCrop i used setSelect : [0, 0, x, y]. What is the Darkroom.js equivalent?

Thanks!

MattKetmo commented 8 years ago

Hello. You can do this: https://github.com/MattKetmo/darkroomjs/blob/e7d119fb370fd30be9d64c57348f3aabdf6c01b4/demo/index.html#L161