Skip to content

Instantly share code, notes, and snippets.

@hubgit
Last active June 7, 2018 08:31

Revisions

  1. hubgit revised this gist Aug 27, 2013. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions convert-square.sh
    Original file line number Diff line number Diff line change
    @@ -3,4 +3,8 @@
    # wget https://upload.wikimedia.org/wikipedia/commons/2/25/Open_Access_logo_PLoS_white.svg -O icon.svg
    for SIZE in 16 32 48 64 128; do
    convert -background none icon.svg -transparent white -gravity center -resize "$SIZE>x$SIZE" -extent $SIZEx$SIZE icon$SIZE.png;
    done

    for SIZE in 16 32 48 64; do
    convert -background none icon.png -gravity center -resize "$SIZE>x$SIZE" -extent $SIZEx$SIZE icon$SIZE.png;
    done
  2. hubgit revised this gist Aug 11, 2013. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions convert-square.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    #/bin/bash

    # wget https://upload.wikimedia.org/wikipedia/commons/2/25/Open_Access_logo_PLoS_white.svg -O icon.svg
    for SIZE in 16 32 48 64 128;
    do convert -background none icon.svg -transparent white -gravity center -resize "$SIZE>x$SIZE" -extent $SIZEx$SIZE icon$SIZE.png;
    for SIZE in 16 32 48 64 128; do
    convert -background none icon.svg -transparent white -gravity center -resize "$SIZE>x$SIZE" -extent $SIZEx$SIZE icon$SIZE.png;
    done
  3. hubgit revised this gist Aug 11, 2013. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions convert-square.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    #/bin/bash

    SIZE=64

    # wget https://upload.wikimedia.org/wikipedia/commons/2/25/Open_Access_logo_PLoS_white.svg -O icon.svg
    convert -background none icon.svg -transparent white -gravity center -resize "$SIZE>x$SIZE" -extent $SIZEx$SIZE icon$SIZE.png
    for SIZE in 16 32 48 64 128;
    do convert -background none icon.svg -transparent white -gravity center -resize "$SIZE>x$SIZE" -extent $SIZEx$SIZE icon$SIZE.png;
    done
  4. hubgit revised this gist Aug 11, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion convert-square.sh
    Original file line number Diff line number Diff line change
    @@ -3,4 +3,4 @@
    SIZE=64

    # wget https://upload.wikimedia.org/wikipedia/commons/2/25/Open_Access_logo_PLoS_white.svg -O icon.svg
    convert -background none oa.svg -transparent white -gravity center -resize "$SIZE>x$SIZE" -extent $SIZEx$SIZE icon$SIZE.png
    convert -background none icon.svg -transparent white -gravity center -resize "$SIZE>x$SIZE" -extent $SIZEx$SIZE icon$SIZE.png
  5. hubgit revised this gist Aug 11, 2013. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions convert-square.sh
    Original file line number Diff line number Diff line change
    @@ -2,5 +2,5 @@

    SIZE=64

    # wget https://upload.wikimedia.org/wikipedia/commons/2/25/Open_Access_logo_PLoS_white.svg -O oa.svg
    convert -background none oa.svg -transparent white -gravity center -resize "$SIZE>x$SIZE" -extent $SIZEx$SIZE oa$SIZE.png
    # wget https://upload.wikimedia.org/wikipedia/commons/2/25/Open_Access_logo_PLoS_white.svg -O icon.svg
    convert -background none oa.svg -transparent white -gravity center -resize "$SIZE>x$SIZE" -extent $SIZEx$SIZE icon$SIZE.png
  6. hubgit renamed this gist Aug 8, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  7. hubgit created this gist Aug 8, 2013.
    6 changes: 6 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    #/bin/bash

    SIZE=64

    # wget https://upload.wikimedia.org/wikipedia/commons/2/25/Open_Access_logo_PLoS_white.svg -O oa.svg
    convert -background none oa.svg -transparent white -gravity center -resize "$SIZE>x$SIZE" -extent $SIZEx$SIZE oa$SIZE.png