Skip to content

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

merged 3 commits into from Dec 27, 2013

2 participants

taivo commented Dec 26, 2013

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 asaglimbeni merged commit ab04b57 into asaglimbeni:master Dec 27, 2013

Hi Tavo
Thank you for your contribution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.