Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use javascript to crop image [closed]

Tags:

javascript

I want to put a sprite image in my website, and use javascript to crop it to many separate images, then put these images into an image array.

Is this possible? Thanks.

like image 545
Sam Avatar asked Dec 06 '10 06:12

Sam


1 Answers

Take a look at jCrop, if you're using jQuery or JavaScript Image Cropper UI if you're using prototype.

What server-side language are you using? If you just want a straight crop w/o the graphical interface it might be better to do it server side.

If you're using PHP, check out this tutorial on nettuts

If you're using Ruby on Rails, check out Paperclip

like image 146
bimbom22 Avatar answered Oct 11 '22 07:10

bimbom22