Debian Codegraph @

tools/svg/README.md

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