I want my users to be able to do a rubberband selection in a image for a Ruby on Rails application. Has anyone seen any good plugins that do this or make it easy for me to implement it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I played around with an image cropper that has that feature, and it uses Prototype, so it should be good to go for ROR. The code is pretty easy to figure out if you just want the elastic band element.
If you want to roll-your-own it’s not too hard to glue a Scriptaculous Draggable object to a DIV and resize/move the DIV. See my crappy demo.