Do you want to request a feature or report a bug?
What is the current behavior?
There is currently no way (it seems) to resize an image on the client-side. It's easy enough on the server-end, but UX-wise it would be nice to do on the client side.
If this is a feature request, what is motivation or use case for changing the behavior?
Often users are uploading images from mobile devices or tablets, which take really large images. Ideally these would be compressed/resized at the client end before being uploaded.
Similar to the discussion on Enyo's DropZone:
https://github.com/enyo/dropzone/issues/781
Please mention other relevant information such as the browser version, Operating System and react-dropzone version.
N/A
You can process images on the client-side in the onDrop callback.
@okonet I realise that there are places to process images as such.
I was suggesting that this be added as a built-in feature because it would be useful for myself and (judging by the thread on Enyo's DropZone) many other developers. It's in the name of making this a better piece of software.
I get that you are busy and are probably flooded with feature requests, but I'm urging that you consider including this. Or, perhaps there are good reasons why it is not included, but they aren't immediately clear. Nor have I seen any implementation pointers that work with this specific package, either here or on SO.
At any rate, I'll figure out how to do it...but I don't think I'm the only one wondering.
Here I try to explain why such features will never be part of this library: https://github.com/okonet/react-dropzone/issues/438#issuecomment-307031166
OK thanks for clarifying, that makes sense.
On 9 Jun 2017, at 12:06 am, Andrey Okonetchnikov notifications@github.com wrote:
Here I try to explain why such features will never be part of this library: #438 (comment) https://github.com/okonet/react-dropzone/issues/438#issuecomment-307031166
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/okonet/react-dropzone/issues/439#issuecomment-307150214, or mute the thread https://github.com/notifications/unsubscribe-auth/AMKltUfdfKHupGDu_zYFVvWQOND0XZjmks5sCBwDgaJpZM4Nz03u.
Most helpful comment
@okonet I realise that there are places to process images as such.
I was suggesting that this be added as a built-in feature because it would be useful for myself and (judging by the thread on Enyo's DropZone) many other developers. It's in the name of making this a better piece of software.
I get that you are busy and are probably flooded with feature requests, but I'm urging that you consider including this. Or, perhaps there are good reasons why it is not included, but they aren't immediately clear. Nor have I seen any implementation pointers that work with this specific package, either here or on SO.
At any rate, I'll figure out how to do it...but I don't think I'm the only one wondering.