Skip to content

Commit

Permalink
Saved eben more space with purify!
Browse files Browse the repository at this point in the history
I literally only needed 1 bit.
  • Loading branch information
nimaid committed Jul 6, 2020
1 parent eff26be commit f43830e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bookdir2pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,8 @@ def dir_path(string):
# Apply threshold
thresh = sharpen.point(lambda p: p > thresh_setting and 255)

final_page_im = thresh
# Make 1 bit
final_page_im = thresh.convert('1')
else:
final_page_im = page_im

Expand Down
Binary file modified test_dir.pdf
Binary file not shown.

0 comments on commit f43830e

Please sign in to comment.