diff --git a/README.rst b/README.rst index 9d854ad4..73723bb1 100644 --- a/README.rst +++ b/README.rst @@ -122,17 +122,11 @@ Install or upgrade the required Homebrew packages, if any are missing:: brew install leptonica brew install tesseract -It is also recommended that install Pillow and confirm it can read and write JPEG and PNG files:: +Update the homebrew pip and install Pillow:: pip3 install --upgrade pip pip3 install --upgrade pillow -Sometimes, the Python imaging library (Pillow) can end up being compiled and installed without support for JPEG and PNG files. (Arguably, this is an unfixed bug in Pillow's installer.) To confirm that Pillow is compiled correctly and can access JPEG and PNG files, try this command:: - - python3 -c "from PIL import Image; im = Image.new('1', (1, 1)); im.save('test.png'); im.save('test.jpg')" - -If you have trouble getting Pillow to access JPEG and PNG files, `review the installation instructions `__. - You can then install OCRmyPDF from PyPI:: pip3 install ocrmypdf diff --git a/setup.py b/setup.py index a9972b02..1237865d 100644 --- a/setup.py +++ b/setup.py @@ -218,7 +218,7 @@ setup( ], install_requires=[ 'ruffus>=2.6.3', - 'Pillow>=2.4.0', + 'Pillow>=3.0.0', 'reportlab>=3.1.44', 'PyPDF2>=1.25.1', 'img2pdf>=0.2.0',