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
#!/usr/bin/env bash | |
# Rotates an image from either a local file or from a URL passed on the command line or to stdin, | |
# and prints the rotated image file path to stdout. | |
# | |
# Positive angles rotate clockwise, negative counterclockwise. | |
# Exit on first error | |
set -e |
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
#!/usr/bin/env bash | |
# Flips an image horizontally from either a local file or from a URL passed on the command line or to stdin, | |
# and prints flipped image file path to stdout. | |
# | |
# Options: | |
# | |
# -h,--help Display help | |
# -z,--horizontal Flip the image horizontally (default) | |
# -i,--input The image to flip |
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
#!/usr/bin/env bash | |
# Resizes an image from either a local file or a URL passed on the command line or to stdin, | |
# and prints the resized image file path to stdout. | |
# | |
# Options: | |
# | |
# resize-img -h | |
# | |
# Examples: |
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
#!/usr/bin/env bash | |
# Uploads an image to imgur.com from either a local file or from a URL passed on the command line or to stdin, | |
# and prints the imgur.com URL to stdout. | |
# | |
# Examples: | |
# | |
# imgur foo.png | |
# imgur http://example.com/foo.jpg | |
# echo foo.png | imgur |
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
#!/usr/bin/env bash | |
# | |
# Shell script that encrypts or decrypts a file with a password using GnuPG. | |
# The encrypted file is named with a .scramble extension. | |
# Input file is deleted unless the --keep flag is specified. | |
# | |
# Usage: | |
# | |
# scramble [--keep] <file> |
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
#!/usr/bin/env bash | |
# Extracts images from a PDF into a directory, preserving transparency. | |
# | |
# Inspired by https://gist.github.com/bendavis78/ed22a974c2b4534305eabb2522956359 | |
# | |
# Options: | |
# | |
# --help, -h Display help | |
# --pdf, -p The PDF to extract images from |