Skip to content

Instantly share code, notes, and snippets.

@lobre
Created September 2, 2019 13:28
Show Gist options
  • Save lobre/f3c174369458e2b4d206a51dff76a857 to your computer and use it in GitHub Desktop.
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
#!/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