moxiecode / plupload

Plupload is JavaScript API for building file uploaders. It supports multiple file selection, file filtering, chunked upload, client side image downsizing and when necessary can fallback to alternative runtimes, like Flash and Silverlight.
http://www.plupload.com
GNU Affero General Public License v3.0
5.63k stars 1.43k forks source link

Crop options #326

Closed ghost closed 11 years ago

ghost commented 13 years ago

I think it would be great to be able to set options for framing. For example:

Thanks!

Concept211 commented 12 years ago

You could use this excellent Image Resizing class by Jarrod Oberto at server-side after the files have been uploaded: http://net.tutsplus.com/tutorials/php/image-resizing-made-easy-with-php/

Or you could also use TimThumb to generate cached thumbnails on-the-fly: http://www.binarymoon.co.uk/projects/timthumb/

ghost commented 12 years ago

I'm sorry, possible you don't understand what i need. I want to release the server from the load created by cutting pictures. So, I want to resize and crop images on client side.

Concept211 commented 12 years ago

Understood...unfortunately I can't given you any insight on this. Hopefully the devs will consider the feature for a future release.

jayarjo commented 11 years ago

Cropping is now supported in Plupload 2. Can be used like this:

...
// Resize images on clientside if we can
resize : {
    width : 200, 
    height : 200, 
    quality : 90,
    crop: true // crop to exact dimensions
},
...

Also check updated UI Widget example from Plupload 2 beta nightly.