Compress test images more heavily
|
Before Width: | Height: | Size: 1.4 MiB |
@@ -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
|
||||
.. _`Wikimedia: Baionako udalerri mugakideak`: https://commons.wikimedia.org/wiki/File:Baionako_udalerri_mugakideak.png
|
||||
|
||||
|
Before Width: | Height: | Size: 53 KiB After Width: | Height: | Size: 50 KiB |
|
Before Width: | Height: | Size: 168 KiB After Width: | Height: | Size: 136 KiB |
|
Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 188 KiB After Width: | Height: | Size: 101 KiB |
|
After Width: | Height: | Size: 138 KiB |
|
Before Width: | Height: | Size: 120 KiB After Width: | Height: | Size: 102 KiB |
@@ -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)
|
||||
|
||||
|
||||
|
||||