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.

Revisions

  1. aaronpenne revised this gist Apr 17, 2022. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions artwork_post_processing.sh
    Original file line number Diff line number Diff line change
    @@ -4,6 +4,9 @@ ffmpeg -i IMG_0021.jpeg -i IMG_0029.jpeg -i IMG_0026.jpeg -filter_complex "[0][2
    # 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

  2. aaronpenne revised this gist Feb 22, 2022. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion artwork_post_processing.sh
    Original file line number Diff line number Diff line change
    @@ -5,4 +5,7 @@ ffmpeg -i IMG_0021.jpeg -i IMG_0029.jpeg -i IMG_0026.jpeg -filter_complex "[0][2
    convert unpadded.png -background "#ECE7DD" -gravity center -extent 7200x4000 padded.png

    # Convert Quitcktime screen recording to gif
    ffmpeg -i screen_recording.mov -pix_fmt rgb24 -r 20 -s 400x400 out.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
  3. aaronpenne revised this gist Feb 8, 2022. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion artwork_post_processing.sh
    Original file line number Diff line number Diff line change
    @@ -2,4 +2,7 @@
    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
    convert unpadded.png -background "#ECE7DD" -gravity center -extent 7200x4000 padded.png

    # Convert Quitcktime screen recording to gif
    ffmpeg -i screen_recording.mov -pix_fmt rgb24 -r 20 -s 400x400 out.gif
  4. aaronpenne created this gist Jan 28, 2022.
    5 changes: 5 additions & 0 deletions artwork_post_processing.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    # 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