Skip to content

Instantly share code, notes, and snippets.

@dnmellen
Last active January 27, 2022 22:40
Show Gist options
  • Select an option

  • Save dnmellen/ab8755a52263edc48d0746e88269eab1 to your computer and use it in GitHub Desktop.

Select an option

Save dnmellen/ab8755a52263edc48d0746e88269eab1 to your computer and use it in GitHub Desktop.

Revisions

  1. dnmellen revised this gist Jan 27, 2022. 2 changed files with 7 additions and 1 deletion.
    1 change: 0 additions & 1 deletion hipstergram
    Original file line number Diff line number Diff line change
    @@ -1 +0,0 @@
    hipstergram='ls -1 | xargs -I{} convert -background white -gravity center {} -resize 1080x1080 -extent 1080x1080 i-{}'
    7 changes: 7 additions & 0 deletions hipstergram.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    #!/bin/bash

    for file in `ls -1`; do
    echo $file;
    convert -background white -gravity center $file -resize 1080x1080 -extent 1080x1080 i-$file
    convert $file -crop 2x1@ i-$file
    done
  2. dnmellen revised this gist Jan 27, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion hipstergram
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    hisptergram='ls -1 | xargs -i convert -background white -gravity center {} -resize 1080x1080 -extent 1080x1080 i-{}'
    hipstergram='ls -1 | xargs -I{} convert -background white -gravity center {} -resize 1080x1080 -extent 1080x1080 i-{}'
  3. dnmellen created this gist Jan 27, 2022.
    1 change: 1 addition & 0 deletions hipstergram
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    hisptergram='ls -1 | xargs -i convert -background white -gravity center {} -resize 1080x1080 -extent 1080x1080 i-{}'