diff --git a/tests/resources/LinnSequencer.jpg b/tests/resources/LinnSequencer.jpg deleted file mode 100644 index 84876ae7..00000000 Binary files a/tests/resources/LinnSequencer.jpg and /dev/null differ diff --git a/tests/resources/README.rst b/tests/resources/README.rst index c97c1061..786649d4 100644 --- a/tests/resources/README.rst +++ b/tests/resources/README.rst @@ -9,7 +9,7 @@ Files derived from free sources These test resources come from free sources, under either public domain or Creative Commons licenses. In some cases they were converted from one image format to another without other changes. -.. list-table:: +.. list-table:: :widths: 20 50 30 :header-rows: 1 @@ -28,7 +28,7 @@ In some cases they were converted from one image format to another without other * - lichtenstein.pdf - `Wikimedia: JPEG2000 Lichtenstein`_ - Creative Commons BY-SA 3.0 - * - LinnSequencer.jpg, linn.pdf, linn.txt + * - linn.png, linn.pdf, linn.txt - `Wikimedia: LinnSequencer`_ - Creative Commons BY-SA 3.0 * - typewriter.png, 2400dpi.pdf @@ -45,7 +45,7 @@ Files generated for this project The following test resources were crafted specifically for this project, and are licensed under the specified license. -.. list-table:: +.. list-table:: :widths: 20 40 15 15 10 :header-rows: 1 @@ -68,12 +68,12 @@ licensed under the specified license. - a CMYK image created in Photoshop - @jbarlow83 - @jbarlow83 - - CC-BY-SA 4.0 + - CC-BY-SA 4.0 * - crom.png - test for non-dictionary words - @jbarlow83 - @jbarlow83 - - CC-BY-SA 4.0 + - CC-BY-SA 4.0 * - enormous.pdf - very large PDF page - @jbarlow83 @@ -90,12 +90,12 @@ licensed under the specified license. - @jbarlow83 - CC-BY-SA 4.0 * - francais.pdf - - a page containing French accents (diacritics) + - a page containing French accents (diacritics) - @jbarlow83 - @jbarlow83 - CC-BY-SA 4.0 * - hugemono.pdf - - large monochrome 35000x35000 image in JBIG2 encoding + - large monochrome 35000x35000 image in JBIG2 encoding - @jbarlow83 - @jbarlow83 - CC-BY-SA 4.0 @@ -110,9 +110,9 @@ licensed under the specified license. - Wikipedia authors - CC-BY-SA 3.0 * - missing_docinfo.pdf + - PDF file with no /DocumentInfo section - @jbarlow83 - @jbarlow83 - - PDF file with no /DocumentInfo section - CC-BY-SA 4.0 * - overlay.pdf - PDF file generated by PDFPen pro that triggered content stream parse errors @@ -148,17 +148,17 @@ These test resources are assemblies or derivatives from other previously mention - baiona_gray.png (from baiona.png) - baiona_colormapped.png (from baiona.png) -- cardinal.pdf (four cardinal directions, baked-in rotated copies of LinnSequencer.jpg) -- ccitt.pdf (LinnSequencer.jpg, converted to CCITT encoding) +- cardinal.pdf (four cardinal directions, baked-in rotated copies of linn.png) +- ccitt.pdf (linn.png, converted to CCITT encoding) - encrypted_algo4.pdf (congress.jpg, encrypted with algorithm 4 - not supported by PyPDF2) - graph_ocred.pdf (from graph.pdf) - jbig2.pdf (congress.jpg, converted to JBIG2 encoding) - multipage.pdf (from several other files) - palette.pdf (congress.jpg, converted to a 256-color palette) -- poster.pdf (from LinnSequencer.jpg) -- rotated_skew.pdf (a /Rotate'd and skewed document from LinnSequencer.jpg) +- poster.pdf (from linn.png) +- rotated_skew.pdf (a /Rotate'd and skewed document from linn.png) - skew-encrypted.pdf (skew.pdf with encryption - access supported by PyPDF2, password is "password") -- skew.pdf (from LinnSequencer.jpg, skew simulated by adjusting the transformation matrix) +- skew.pdf (from linn.png, skew simulated by adjusting the transformation matrix) - toc.pdf (from formxobject.pdf, trivial.pdf) @@ -172,8 +172,8 @@ These test resources are assemblies or derivatives from other previously mention .. _`Wikimedia: JPEG2000 Lichtenstein`: https://en.wikipedia.org/wiki/JPEG_2000#/media/File:Jpeg2000_2-level_wavelet_transform-lichtenstein.png -.. _`Linux (Wikipedia Article)`: https://de.wikipedia.org/wiki/Linux +.. _`Linux (Wikipedia Article)`: https://de.wikipedia.org/wiki/Linux .. _`Wikimedia: Triumph typewrtier text Linzensoep`: https://commons.wikimedia.org/wiki/File:Triumph.typewriter_text_Linzensoep.gif -.. _`Wikimedia: Baionako udalerri mugakideak`: https://commons.wikimedia.org/wiki/File:Baionako_udalerri_mugakideak.png \ No newline at end of file +.. _`Wikimedia: Baionako udalerri mugakideak`: https://commons.wikimedia.org/wiki/File:Baionako_udalerri_mugakideak.png diff --git a/tests/resources/baiona-colormapped.png b/tests/resources/baiona-colormapped.png index 5b60b913..30f260e4 100644 Binary files a/tests/resources/baiona-colormapped.png and b/tests/resources/baiona-colormapped.png differ diff --git a/tests/resources/baiona.png b/tests/resources/baiona.png index 3e4b0058..c1f6dc8a 100644 Binary files a/tests/resources/baiona.png and b/tests/resources/baiona.png differ diff --git a/tests/resources/baiona_gray.png b/tests/resources/baiona_gray.png index d01a285f..0e9f2696 100644 Binary files a/tests/resources/baiona_gray.png and b/tests/resources/baiona_gray.png differ diff --git a/tests/resources/congress.jpg b/tests/resources/congress.jpg index d63d7026..8bc6f638 100644 Binary files a/tests/resources/congress.jpg and b/tests/resources/congress.jpg differ diff --git a/tests/resources/linn.png b/tests/resources/linn.png new file mode 100644 index 00000000..9f9eec11 Binary files /dev/null and b/tests/resources/linn.png differ diff --git a/tests/resources/typewriter.png b/tests/resources/typewriter.png index ab483def..bf5d4e7c 100644 Binary files a/tests/resources/typewriter.png and b/tests/resources/typewriter.png differ diff --git a/tests/test_main.py b/tests/test_main.py index e72dc102..3d8a3b05 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -448,7 +448,7 @@ def test_convert_to_square_resolution(renderer, spoof_tesseract_cache, def test_image_to_pdf(spoof_tesseract_noop, resources, outpdf): check_ocrmypdf( - resources / 'LinnSequencer.jpg', outpdf, '--image-dpi', '200', + resources / 'crom.png', outpdf, '--image-dpi', '200', env=spoof_tesseract_noop)