Dropzone.js + Client Side Image Resizing

后端 未结 5 1458
离开以前
离开以前 2020-12-05 11:09

I want to integrate Dropzone.js with a Client Side Image Resizing. I know that there is a function to resize the thumbnail, but I would like to create a functio

5条回答
  •  再見小時候
    2020-12-05 12:03

    Dropzone version 5 is recently released, so if you upgrade to dropzone 5, then you can simply use resizeWidth and resizeHeigh to compress your image on the client side.

    If you provide only one of them, then dropzone will respect the original aspect ratio, for example if you just add the option: resizeWidth: 800 then your image will be compressed to width=800 pixels and your original image's aspect ration will be respected.

提交回复
热议问题