Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
README.md | D | 23-Nov-2023 | 1.1 KiB | 34 | 26 | |
svg_downloader.py | D | 23-Nov-2023 | 2.1 KiB | 68 | 47 | |
svg_images.txt | D | 23-Nov-2023 | 5.2 KiB | 74 | 73 | |
svgs.txt | D | 23-Nov-2023 | 21.4 KiB | 305 | 304 | |
svgs_parse_only.txt | D | 23-Nov-2023 | 3.8 KiB | 54 | 53 |
README.md
1SVG Tools 2========= 3 4This directory contains the following- 5 6 7svgs.txt 8-------- 9This text file contains an SVG URL per line. 10It is a list of the SVG files used to test rendering correctness. 11 12svg_images.txt 13-------------- 14This text file contains an image URL per line. 15It is a list of images used by the SVGs in svgs.txt. 16 17svgs_parse_only.txt 18------------------- 19This text file contains an SVG URL per line. 20It is a list of the SVG files used to exercise the SVG parsing code. 21 22svg_downloader.py 23----------------- 24This python script parses txt files and downloads SVGs and images into a specified directory. 25 26The script can be run by hand: 27$ python svg_downloader.py --output_dir /tmp/svgs/ 28OR 29$ python svg_downloader.py --output_dir /tmp/svgs/ --input_file svgs_parse_only.txt --prefix svgparse_ 30 31If the --keep_common_prefix argument is specified, URL components after the common prefix 32will be preserved in the destination directory hierarchy. For example, if the input file contains 33URLs https://example.com/images/a.png and https://example.com/images/subdir/b.png, the downloaded 34files will go to output_dir/a.png and output_dir/subdir/b.png.