Skip to content

Commit

Permalink
Script for creating PNGs
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuelduss committed Feb 25, 2020
1 parent e45859c commit fbd70f6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions createpng
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

PDF="$(ls hacking_tools_cheat_sheet_v*.pdf)"
PNG="$(sed 's/\.pdf$/.png/' <<< $PDF)"

convert -background white -alpha remove -alpha off -density 300 "$PDF" "$PNG"
convert -append "$PDF" "$PNG"

0 comments on commit fbd70f6

Please sign in to comment.