Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File upload is really slow #25

Open
Moschn opened this issue Jul 2, 2016 · 2 comments
Open

File upload is really slow #25

Moschn opened this issue Jul 2, 2016 · 2 comments

Comments

@Moschn
Copy link
Owner

Moschn commented Jul 2, 2016

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 pallets/werkzeug#875

@Moschn
Copy link
Owner Author

Moschn commented Jul 19, 2016

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

@Moschn
Copy link
Owner Author

Moschn commented Jul 19, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant