Created
July 6, 2018 11:29
-
-
Save jarvist/cd9632dfaa10d8fc5a81cd65c11cac88 to your computer and use it in GitHub Desktop.
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
# poster_split.sh | |
# Script to split (Google Docs 'Drawing') poster into 4 panels for printing @ A3 | |
# mutool is part of mupdf-tools on debian | |
# Lovely fast built in poster command! | |
mutool poster -x2 -y2 "${1}" 2x2.pdf | |
# For tweeter. | |
# -background white -alpha remove - puts in white background, removes ugly black transparent regions | |
# -density 144 -resize 50% - super-sample @ 200% to add anti-aliasing (avoid jagged text) | |
convert -background white -alpha remove -density 144 2x2.pdf -resize 50% 2x2.jpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment