1cb93a386Sopenharmony_ciSVG Tools 2cb93a386Sopenharmony_ci========= 3cb93a386Sopenharmony_ci 4cb93a386Sopenharmony_ciThis directory contains the following- 5cb93a386Sopenharmony_ci 6cb93a386Sopenharmony_ci 7cb93a386Sopenharmony_cisvgs.txt 8cb93a386Sopenharmony_ci-------- 9cb93a386Sopenharmony_ciThis text file contains an SVG URL per line. 10cb93a386Sopenharmony_ciIt is a list of the SVG files used to test rendering correctness. 11cb93a386Sopenharmony_ci 12cb93a386Sopenharmony_cisvg_images.txt 13cb93a386Sopenharmony_ci-------------- 14cb93a386Sopenharmony_ciThis text file contains an image URL per line. 15cb93a386Sopenharmony_ciIt is a list of images used by the SVGs in svgs.txt. 16cb93a386Sopenharmony_ci 17cb93a386Sopenharmony_cisvgs_parse_only.txt 18cb93a386Sopenharmony_ci------------------- 19cb93a386Sopenharmony_ciThis text file contains an SVG URL per line. 20cb93a386Sopenharmony_ciIt is a list of the SVG files used to exercise the SVG parsing code. 21cb93a386Sopenharmony_ci 22cb93a386Sopenharmony_cisvg_downloader.py 23cb93a386Sopenharmony_ci----------------- 24cb93a386Sopenharmony_ciThis python script parses txt files and downloads SVGs and images into a specified directory. 25cb93a386Sopenharmony_ci 26cb93a386Sopenharmony_ciThe script can be run by hand: 27cb93a386Sopenharmony_ci$ python svg_downloader.py --output_dir /tmp/svgs/ 28cb93a386Sopenharmony_ciOR 29cb93a386Sopenharmony_ci$ python svg_downloader.py --output_dir /tmp/svgs/ --input_file svgs_parse_only.txt --prefix svgparse_ 30cb93a386Sopenharmony_ci 31cb93a386Sopenharmony_ciIf the --keep_common_prefix argument is specified, URL components after the common prefix 32cb93a386Sopenharmony_ciwill be preserved in the destination directory hierarchy. For example, if the input file contains 33cb93a386Sopenharmony_ciURLs https://example.com/images/a.png and https://example.com/images/subdir/b.png, the downloaded 34cb93a386Sopenharmony_cifiles will go to output_dir/a.png and output_dir/subdir/b.png.