- Downloader: downloads images in a list of URLs asynchronously
- Resizer: resizes images in a specified folder asynchronously
NOTE: requires Python 3.5 or above.
After cloning,
cd asynctools
virtualenv -p python3 .
pip install .
download_async <LABEL> <OPTIONAL: start line index> <OPTIONAL: end line index>
e.g.
download_async urls
download_async urls 10000
download_async urls 10000 20000
resize_async <LABEL> <INPUT_FORMAT> <OUTPUT FORMAT> <MIN SIZE> <MAX RATIO>
e.g.
resize_async urls jpeg jpeg 300 2.0