Quin
Quin

Reputation: 523

Onsite image cropping functionality with a fixed ratio with RoR, Paperclip, S3 setup

I am looking for a way to provide a onsite image cropping functionality to the user. However, I would only like to allow them to crop their image with a given respect ratio. The idea is similar to the square protrait cropper for some social website when you upload an avatar. Can anyone suggest a solution for this? Thank you.

Upvotes: 0

Views: 166

Answers (2)

techvineet
techvineet

Reputation: 5111

You can try jCrop with paperclip in Rails. jCrop can restrict user to select square cropping. Checkout this Ryan Bates tutorial on how to integrate jCrop with paperclip http://railscasts.com/episodes/182-cropping-images

Hope this will help!

Upvotes: 0

dax
dax

Reputation: 10997

There's a railscast specifically about this - you might also consider using gravatar which makes everything a lot more 'hands off' for you.

Upvotes: 1

Related Questions