Open Moschn opened 8 years ago
The problem is in the many newline characters in the uploaded files. If the tif file is compressed using the following commands, the upload is blazing fast.
convert video.tif -compress lzw compressed.tif
I dont know how to solve this.
Added a warning in d62c354
Pillow can somehow not open lzw compressed tiff files, although this is specified in http://pillow.readthedocs.io/en/3.2.x/handbook/image-file-formats.html.
The file upload from werkzeug that is used in flask is really slow for binary files. On my machine one core is used at 100% for the entire upload duration and the speed is only around 150 kbit/s.
This is probably related to https://github.com/pallets/werkzeug/issues/875