• Home
Name Date Size #Lines LOC

..--

README.mdD03-May-20241.1 KiB3426

svg_downloader.pyD03-May-20242.1 KiB6847

svg_images.txtD03-May-20245.2 KiB7473

svgs.txtD03-May-202421.4 KiB305304

svgs_parse_only.txtD03-May-20243.8 KiB5453

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.