asaglimbeni / clean-image-crop-uploader

Clean Image Crop Uploader (CICU) provides AJAX file upload and image CROP functionalities for ImageFields with a simple widget replacement in the form. It use Modal from twitter-bootstrap.
http://asaglimbeni.github.com/clean-image-crop-uploader/
Other
40 stars 36 forks source link

open image file in binary mode in order to copy properly #12

Closed taivo closed 10 years ago

taivo commented 10 years ago

the cropped file is copied from cicu_cropped folder to ajax_uploads folder. This copy gets corrupted because the source file is opened with r mode. I changed it to rb for binary treatment of image files.

asaglimbeni commented 10 years ago

Hi Tavo Thank you for your contribution Alfredo