Add ppa for pngquant 2.5.0

This commit is contained in:
FPille
2019-08-02 17:46:46 +02:00
parent 55a44f823a
commit 7409cbed29
2 changed files with 4 additions and 16 deletions
+3
View File
@@ -6,6 +6,7 @@ dist: trusty
before_install:
- sudo add-apt-repository ppa:heyarje/libav-11 -y
- sudo add-apt-repository ppa:alex-p/tesseract-ocr -y
- sudo add-apt-repository ppa:evl.ms/evil -y # for a newer version (2.5.0) of pngquant
- sudo apt-get update -qq
- sudo apt-get install libleptonica-dev -y # required to build jbig2enc
- sudo apt-get install zlib1g-dev -y # required to build jbig2enc
@@ -14,6 +15,8 @@ before_install:
script:
- export OCRMYPDF_VERSION=8.3.2
- bash build-appimage.sh
- # remove previous installed libraries to ensure that the tests use the libraries of the AppImage
- sudo apt-get remove libleptonica-dev zlib1g-dev -y
- bash test/test-appimage.sh
- wget https://github.com/probonopd/uploadtool/raw/master/upload.sh
+1 -16
View File
@@ -39,22 +39,7 @@ run_appimage
run_appimagelint
# run_pytest # commented out in order to get the AppImage uploaded to github release
run_pytest
# 'test_flate_to_jbig2' fails
# > assert pim.filters[0] == '/JBIG2Decode'
# E AssertionError: assert '/FlateDecode' == '/JBIG2Decode'
# E - /FlateDecode
# E + /JBIG2Decode
# ../OCRmyPDF/tests/test_optimize.py:131: AssertionError
# ----------------------------- Captured stderr call -----------------------------
# INFO - Input file is not a PDF, checking if it is an image...
# INFO - Input file is an image
# INFO - Image seems valid. Try converting to PDF...
# INFO - Successfully converted to PDF, processing...
# pngquant: unrecognized option '--skip-if-larger'
# INFO - Optimize ratio: 1.02 savings: 1.7%
# INFO - Output file is a PDF/A-2B (as expected)