Skip to content

Instantly share code, notes, and snippets.

@Lerg
Last active April 11, 2024 19:25
Show Gist options
  • Save Lerg/b0a643a13f751747976f to your computer and use it in GitHub Desktop.
Save Lerg/b0a643a13f751747976f to your computer and use it in GitHub Desktop.

Revisions

  1. Lerg revised this gist Dec 3, 2014. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion prepare_icons.sh
    Original file line number Diff line number Diff line change
    @@ -14,11 +14,13 @@ convert "$base" -resize '114x114' -unsharp 1x4 "[email protected]"
    convert "$base" -resize '120x120' -unsharp 1x4 "[email protected]"
    convert "$base" -resize '144x144' -unsharp 1x4 "[email protected]"
    convert "$base" -resize '152x152' -unsharp 1x4 "[email protected]"
    convert "$base" -resize '180x180' -unsharp 1x4 "[email protected]"
    convert "$base" -resize '512x512' -unsharp 1x4 "iTunesArtwork"
    convert "$base" -resize '1024x1024' -unsharp 1x4 "iTunesArtwork@2x"

    convert "$base" -resize '36x36' -unsharp 1x4 "Icon-ldpi.png"
    convert "$base" -resize '48x48' -unsharp 1x4 "Icon-mdpi.png"
    convert "$base" -resize '72x72' -unsharp 1x4 "Icon-hdpi.png"
    convert "$base" -resize '96x96' -unsharp 1x4 "Icon-xhdpi.png"
    convert "$base" -resize '144x144' -unsharp 1x4 "Icon-xxhdpi.png"
    convert "$base" -resize '144x144' -unsharp 1x4 "Icon-xxhdpi.png"
    convert "$base" -resize '192x192' -unsharp 1x4 "Icon-xxxhdpi.png"
  2. Lerg revised this gist Jun 22, 2014. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion prepare_icons.sh
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,6 @@ convert "$base" -resize '80x80' -unsharp 1x4 "[email protected]"
    convert "$base" -resize '100x100' -unsharp 1x4 "[email protected]"
    convert "$base" -resize '114x114' -unsharp 1x4 "[email protected]"
    convert "$base" -resize '120x120' -unsharp 1x4 "[email protected]"
    convert "$base" -resize '120x120' -unsharp 1x4 "Icon-120.png"
    convert "$base" -resize '144x144' -unsharp 1x4 "[email protected]"
    convert "$base" -resize '152x152' -unsharp 1x4 "[email protected]"
    convert "$base" -resize '512x512' -unsharp 1x4 "iTunesArtwork"
  3. Lerg created this gist Jun 21, 2014.
    25 changes: 25 additions & 0 deletions prepare_icons.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    #!/bin/sh
    base=$1
    convert "$base" -resize '29x29' -unsharp 1x4 "Icon-Small.png"
    convert "$base" -resize '40x40' -unsharp 1x4 "Icon-Small-40.png"
    convert "$base" -resize '50x50' -unsharp 1x4 "Icon-Small-50.png"
    convert "$base" -resize '57x57' -unsharp 1x4 "Icon.png"
    convert "$base" -resize '58x58' -unsharp 1x4 "[email protected]"
    convert "$base" -resize '60x60' -unsharp 1x4 "Icon-60.png"
    convert "$base" -resize '72x72' -unsharp 1x4 "Icon-72.png"
    convert "$base" -resize '76x76' -unsharp 1x4 "Icon-76.png"
    convert "$base" -resize '80x80' -unsharp 1x4 "[email protected]"
    convert "$base" -resize '100x100' -unsharp 1x4 "[email protected]"
    convert "$base" -resize '114x114' -unsharp 1x4 "[email protected]"
    convert "$base" -resize '120x120' -unsharp 1x4 "[email protected]"
    convert "$base" -resize '120x120' -unsharp 1x4 "Icon-120.png"
    convert "$base" -resize '144x144' -unsharp 1x4 "[email protected]"
    convert "$base" -resize '152x152' -unsharp 1x4 "[email protected]"
    convert "$base" -resize '512x512' -unsharp 1x4 "iTunesArtwork"
    convert "$base" -resize '1024x1024' -unsharp 1x4 "iTunesArtwork@2x"

    convert "$base" -resize '36x36' -unsharp 1x4 "Icon-ldpi.png"
    convert "$base" -resize '48x48' -unsharp 1x4 "Icon-mdpi.png"
    convert "$base" -resize '72x72' -unsharp 1x4 "Icon-hdpi.png"
    convert "$base" -resize '96x96' -unsharp 1x4 "Icon-xhdpi.png"
    convert "$base" -resize '144x144' -unsharp 1x4 "Icon-xxhdpi.png"