resize images while uploading
Dear all, I want to optimize the computational time for uploading and resizing pictures: as soon as an image is upload, I want to create a resize image. How can I do it?
Thank you very much for your support!
Check out the image_versions option of the example PHP upload handler: https://github.com/blueimp/jQuery-File-Upload/blob/master/server/php/UploadHandler.php#L85
This document doesn't exist any more. Is there any chance a new link is available as I am having a job getting image resizing working myself. I thought it was as easy as adding max width and height into the parameters, but this doesn't seem to resize:
$(function () { $('#fileupload').fileupload({ dataType: 'json', url: '../fileUpload/server/php/index.php', autoUpload: true, resizeMaxWidth: 600, resizeMaxHeight: 600, maxNumberOfFiles: 8, done: function (e, data) { $.each(data.result, function (index, file) { $('
').text(file.name).appendTo(document.body); }); } }); });Is there something else I have to invoke? Sorry if I am being stupid...
I hadn't included the jquery.fileupload-ip.js file, doh! This is solved thanks.
For a reference to the server-side implementation, I've also updated my link above to the new location of the PHP upload handler class.
Many thanks for that and for the excellent plugin :)
That url doesn't exist again. It is showing git hub 404 page. Can you please update it.
URL in my comment above updated again.
It is still showing 404 page. Not sure what's going on.
Sorry, probably didn't save correctly. Should work now.
Thanks it worked for me