Last active
April 17, 2022 15:39
-
-
Save aaronpenne/c73a75f8cbc8613b50c3b4bfc8cad2e4 to your computer and use it in GitHub Desktop.
Helper functions for artwork resizing, combining, padding, etc.
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
# Combine multiple images into one (three singles into one row of three) | |
ffmpeg -i IMG_0021.jpeg -i IMG_0029.jpeg -i IMG_0026.jpeg -filter_complex "[0][2][1]hstack=inputs=3" combined.png | |
# Expand image by adding colored padding | |
convert unpadded.png -background "#ECE7DD" -gravity center -extent 7200x4000 padded.png | |
# Crop video, centered | |
ffmpeg -i in.mp4 -filter:v "crop=in_w-30:in_h-18" -c:a copy out.mp4 | |
# Convert Quitcktime screen recording to gif | |
ffmpeg -i screen_recording.mov -pix_fmt rgb24 -r 20 -s 400x400 out.gif | |
# Image to hex outputs | |
convert hole.png txt: | grep -o "#\w*" | sed -e 's/^/"/g' -e 's/FF$/",/g' | tail -n +2 | pbcopy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment