Created
September 2, 2019 13:28
-
-
Save lobre/f3c174369458e2b4d206a51dff76a857 to your computer and use it in GitHub Desktop.
Generate a good quality PNG image from the Tascam block diagram in the official manual
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
#!/bin/bash | |
# Downloading official manual | |
wget -O tascam.pdf https://tascam.com/downloads/products/tascam/model_24/e_model-24_om_va.pdf | |
# Extract page 52 to PNG and crop/rotate/erase content | |
# Sizes are chosen to keep a 3:2 ratio | |
convert -density 600 "tascam.pdf[52]" -quality 100 -rotate 90 -crop 6051x4033+250+460 -bordercolor white -shave 150x0 -border 150x0 tascam.png | |
# Remove manual | |
rm -f e_model-24_om_va.pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment