Generate and save a tiled image from an input image. Command line inputs:
- path to an image file as input
- number of tiles to be generated
- path to output the tiled image
Display all gzipped files under the directory at any level (file can be gzipped regardless of having .gz suffix in the filename). Gunzip the files inplace:
- gzipped files with .gz suffix in filename to be gunzipped to without .gz suffix in the end, overwriting any existing files
- gzipped files without .gz suffix in the filename to be gunzipped to same path, replacing the original file
Command line input:
- path to a directory
--dryrun
flag to just display gzipped files with out extracting the files
pip install -r requirements.txt
The project is written in python 3.7.
The num_tiles parameter is taken in float
format and repeats the input image as many times as possible.
python tile_image.py <--inp_path INP_PATH> <--out_path OUT_PATH> <--num_tiles NUM_TILES>
Assumption: Files are gunzipped regardless of whether they are already gunzipped. This can potentially be avoided by doing a check first.
python traverse_directory.py <--dir_path DIR_PATH> [--dryrun]
python tile_image.py --help
python traverse_directory.py --help