cropper js is increasing size of the file

Created on 11 Apr 2017  路  1Comment  路  Source: fengyuanchen/cropper

The cropper js is increasing the file size drastically . let say if 1 MB file is processed and send as 2-3 MB size file.

Most helpful comment

If your original imaeg is JPEG, then when call canvas.toDataURL, you should pass in the same image type:

<img src="example.jpg">
$('img').getCroppedCanvas().toDataURL('image/jpeg');

>All comments

If your original imaeg is JPEG, then when call canvas.toDataURL, you should pass in the same image type:

<img src="example.jpg">
$('img').getCroppedCanvas().toDataURL('image/jpeg');
Was this page helpful?
0 / 5 - 0 ratings

Related issues

naglalakk picture naglalakk  路  5Comments

airtwister picture airtwister  路  7Comments

zilions picture zilions  路  3Comments

ghengeveld picture ghengeveld  路  3Comments

jzahka picture jzahka  路  4Comments