Created
November 20, 2021 15:29
-
-
Save jeremyfix/afbdae585afc42dd6e77c6d0d038dfd2 to your computer and use it in GitHub Desktop.
Transform a scanned colored 2 pages book into single pages gray
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
# The margins were on the right and bottom parts (hence the first rotation to ease margin removal) | |
convert -rotate 180 -crop +130+210 +repage -density 130 -rotate -90 -colorspace gray +repage source.pdf tmp.pdf && mutool poster -x 2 tmp.pdf target.pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment