Last active
December 26, 2015 21:59
-
-
Save ttback/7220015 to your computer and use it in GitHub Desktop.
Blur TIFF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PIL import Image | |
from PIL import ImageFilter | |
pageImage = Image.open('sample.tiff') | |
pageImage = pageImage.convert('L') | |
pageImage.info['compression']='raw' | |
pageImage=pageImage.filter(ImageFilter.GaussianBlur(4)) | |
pageImage.save('/out/sample.tiff') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
so, adding this as a test to Tests/test_file_libtiff.py:
The load works, imagemagick likes it, preview doesn't.