Replace public domain graph.pdf and derivates with licensed version

This commit is contained in:
James R. Barlow
2022-08-11 01:09:00 -07:00
parent a1c7826336
commit 545cd031b0
6 changed files with 11 additions and 6 deletions
+2 -2
View File
@@ -23,7 +23,7 @@ the copyright holder(s) and license(s) applicable to these resources.
- `US Congressional Records`_
- difficult OCR image (color background)
* - graph.pdf
- `Wikimedia: Pandas text analysis.png`_
- `Wikimedia:Simple_line_graph_of_ACE_2012_results_by_candidate_sj01.png`_
- image with slanted text
* - lichtenstein.pdf
- `Wikimedia: JPEG2000 Lichtenstein`_
@@ -127,7 +127,7 @@ These test resources are assemblies or derivatives from other previously mention
.. _`US Congressional Records`: http://www.baxleystamps.com/litho/meiji/courts_1871.jpg
.. _`Wikimedia: Pandas text analysis.png`: https://en.wikipedia.org/wiki/File:Pandas_text_analysis.png
.. _`Wikimedia: Simple_line_graph_of_ACE_2012_results_by_candidate_sj01.png`: https://en.wikipedia.org/wiki/File:Simple_line_graph_of_ACE_2012_results_by_candidate_sj01.png
.. _`Wikimedia: JPEG2000 Lichtenstein`: https://en.wikipedia.org/wiki/JPEG_2000#/media/File:Jpeg2000_2-level_wavelet_transform-lichtenstein.png
Binary file not shown.
Binary file not shown.
Regular → Executable
BIN
View File
Binary file not shown.
+3 -2
View File
@@ -276,7 +276,8 @@ def test_rasterize_rotates(resources, tmp_path):
rotation=90,
filter_vector=False,
)
assert Image.open(img).size == (123, 151), "Image not rotated"
with Image.open(img) as im:
assert im.size == (83, 200), "Image not rotated"
img = tmp_path / 'img180.png'
pm.hook.rasterize_pdf_page(
@@ -289,7 +290,7 @@ def test_rasterize_rotates(resources, tmp_path):
rotation=180,
filter_vector=False,
)
assert Image.open(img).size == (151, 123), "Image not rotated"
assert Image.open(img).size == (200, 83), "Image not rotated"
def test_simulated_scan(outdir):