Remove public domain congress.jpg and replace with baiona_color.jpg

For reuse compliance we are phasing out public domain licenses
This commit is contained in:
James R. Barlow
2023-10-24 00:54:31 -07:00
parent cd61c4efd9
commit 9ffb45f283
7 changed files with 5 additions and 11 deletions
+2 -2
View File
@@ -46,11 +46,11 @@ def test_deskew_blank_page(resources, outpdf):
@pytest.mark.xfail(reason="remove background disabled")
def test_remove_background(resources, outdir):
# Ensure the input image does not contain pure white/black
with Image.open(resources / 'congress.jpg') as im:
with Image.open(resources / 'baiona_color.jpg') as im:
assert im.getextrema() != ((0, 255), (0, 255), (0, 255))
output_pdf = check_ocrmypdf(
resources / 'congress.jpg',
resources / 'baiona_color.jpg',
outdir / 'test_remove_bg.pdf',
'--remove-background',
'--image-dpi',