Skip to content

Instantly share code, notes, and snippets.

@aaronpenne
Last active April 17, 2022 15:39
Show Gist options
  • Select an option

  • Save aaronpenne/c73a75f8cbc8613b50c3b4bfc8cad2e4 to your computer and use it in GitHub Desktop.

Select an option

Save aaronpenne/c73a75f8cbc8613b50c3b4bfc8cad2e4 to your computer and use it in GitHub Desktop.
Helper functions for artwork resizing, combining, padding, etc.
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment