svg upscaling test
This commit is contained in:
parent
6eb1d6fa12
commit
4d416f1053
5 changed files with 6 additions and 0 deletions
1
tests/fileformats/svg/accessibility-outline.svg
Normal file
1
tests/fileformats/svg/accessibility-outline.svg
Normal file
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><circle fill="none" stroke="#000" stroke-linejoin="round" stroke-width="32" cx="256" cy="56" r="40"/><path fill="none" stroke="#000" stroke-linejoin="round" stroke-width="32" d="M204.23,274.44c2.9-18.06,4.2-35.52-.5-47.59-4-10.38-12.7-16.19-23.2-20.15L88,176.76c-12-4-23.21-10.7-24-23.94-1-17,14-28,29-24,0,0,88,31.14,163,31.14s162-31,162-31c18-5,30,9,30,23.79,0,14.21-11,19.21-24,23.94l-88,31.91c-8,3-21,9-26,18.18-6,10.75-5,29.53-2.1,47.59l5.9,29.63L351.21,467.9c2.8,13.15-6.3,25.44-19.4,27.74S308,489,304.12,476.28L266.56,360.35q-2.71-8.34-4.8-16.87L256,320l-5.3,21.65q-2.52,10.35-5.8,20.48L208,476.18c-4,12.85-14.5,21.75-27.6,19.46S158,480.05,160.94,467.9l37.39-163.83Z"/></svg>
|
After Width: | Height: | Size: 744 B |
BIN
tests/fileformats/svg/diffs/accessibility-outline.png
Normal file
BIN
tests/fileformats/svg/diffs/accessibility-outline.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
BIN
tests/fileformats/svg/masters/accessibility-outline.png
Normal file
BIN
tests/fileformats/svg/masters/accessibility-outline.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
BIN
tests/fileformats/svg/rendered/accessibility-outline.png
Normal file
BIN
tests/fileformats/svg/rendered/accessibility-outline.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
|
@ -26,3 +26,8 @@ proc doDiff(rendered: Image, name: string) =
|
|||
|
||||
for file in files:
|
||||
doDiff(decodeSvg(readFile(&"tests/fileformats/svg/{file}.svg")), file)
|
||||
|
||||
doDiff(
|
||||
decodeSvg(readFile("tests/fileformats/svg/accessibility-outline.svg"), 512, 512),
|
||||
"accessibility-outline"
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue