Skip to content

Instantly share code, notes, and snippets.

@kriserickson
Created February 21, 2015 20:44
Show Gist options
  • Save kriserickson/5085e751005c0af9c104 to your computer and use it in GitHub Desktop.
Save kriserickson/5085e751005c0af9c104 to your computer and use it in GitHub Desktop.
set convert="C:\Program Files\ImageMagick-6.9.0-Q16\convert.exe"
mkdir icon\android
%convert% hires-icon.png -resize 36x36 icon/android/icon-36-ldpi.png
%convert% hires-icon.png -resize 48x48 icon/android/icon-48-mdpi.png
%convert% hires-icon.png -resize 72x72 icon/android/icon-72-hdpi.png
%convert% hires-icon.png -resize 96x96 icon/android/icon-96-xhdpi.png
%convert% hires-icon.png -resize 144x144 icon/android/icon-144-xxhdpi.png
%convert% hires-icon.png -resize 192x192 icon/android/icon-192-xxxhdpi.png
mkdir icon\firefox
%convert% hires-icon.png -resize 16x16 icon/firefox/icon-16.png
%convert% hires-icon.png -resize 32x32 icon/firefox/icon-32.png
%convert% hires-icon.png -resize 64x64 icon/firefox/icon-64.png
mkdir icon\ios
%convert% hires-icon-ios.png -resize 29 icon/ios/icon.png
%convert% hires-icon-ios.png -resize 58 icon/ios/[email protected]
%convert% hires-icon-ios.png -resize 29 icon/ios/icon-small.png
%convert% hires-icon-ios.png -resize 58 icon/ios/[email protected]
%convert% hires-icon-ios.png -resize 40 icon/ios/icon-40.png
%convert% hires-icon-ios.png -resize 50 icon/ios/icon-50.png
%convert% hires-icon-ios.png -resize 57 icon/ios/icon-57.png
%convert% hires-icon-ios.png -resize 60 icon/ios/icon-60.png
%convert% hires-icon-ios.png -resize 72 icon/ios/icon-72.png
%convert% hires-icon-ios.png -resize 76 icon/ios/icon-76.png
%convert% hires-icon-ios.png -resize 80 icon/ios/[email protected]
%convert% hires-icon-ios.png -resize 100 icon/ios/[email protected]
%convert% hires-icon-ios.png -resize 114 icon/ios/[email protected]
%convert% hires-icon-ios.png -resize 120 icon/ios/[email protected]
%convert% hires-icon-ios.png -resize 144 icon/ios/[email protected]
%convert% hires-icon-ios.png -resize 152 icon/ios/[email protected]
%convert% hires-icon-ios.png -resize 180 icon/ios/[email protected]
mkdir screen\android
%convert% hires-splash-landscape.png -gravity Center -resize 320 -crop 320x200+0+0 screen/android/screen-ldpi-landscape.png
%convert% hires-splash-landscape.png -gravity Center -resize 480 -crop 480x320+0+0 screen/android/screen-mdpi-landscape.png
%convert% hires-splash-landscape.png -gravity Center -resize 800 -crop 800x480+0+0 screen/android/screen-hdpi-landscape.png
%convert% hires-splash-landscape.png -gravity Center -resize 1280 -crop 1280x720+0+0 screen/android/screen-xhdpi-landscape.png
%convert% hires-splash-portrait.png -gravity Center -resize x320 -crop 200x320+0+0 screen/android/screen-ldpi-portrait.png
%convert% hires-splash-portrait.png -gravity Center -resize x480 -crop 320x480+0+0 screen/android/screen-mdpi-portrait.png
%convert% hires-splash-portrait.png -gravity Center -resize x800 -crop 480x800+0+0 screen/android/screen-hdpi-portrait.png
%convert% hires-splash-portrait.png -gravity Center -resize x1280 -crop 720x1280+0+0 screen/android/screen-xhdpi-portrait.png
mkdir screen\ios
%convert% hires-splash-portrait.png -gravity Center -resize 640x -crop 640x960+0+0 screen\ios\Default@2x~iphone.png
%convert% hires-splash-portrait.png -gravity Center -resize x1136 -crop 640x1136+0+0 screen\ios\Default-568h@2x~iphone.png
%convert% hires-splash-portrait.png -gravity Center -resize x1334 -crop 750x1334+0+0 screen\ios\Default-667h.png
%convert% hires-splash-portrait.png -gravity Center -resize x2208 -crop 1242x2208+0+0 screen\ios\Default-736h.png
%convert% hires-splash-portrait.png -gravity South -resize 768x -crop 768x1024+0+0 screen\ios\Default-Portrait~ipad.png
%convert% hires-splash-portrait.png -gravity South -resize 768x -crop 768x1004+0+0 screen\ios\Default-Portrait~ipad-no-status-bar.png
%convert% hires-splash-landscape.png -gravity Center -resize 2208 -crop 2208x1242+0+0 screen\ios\Default-Landscape-736h.png
%convert% hires-splash-landscape.png -gravity Center -resize 1024 -crop 1024x768+0+0 screen\ios\Default-Landscape~ipad.png
%convert% hires-splash-landscape.png -gravity Center -resize 2048 -crop 2048x1536+0+0 screen\ios\Default-Landscape@2x~ipad.png
%convert% hires-splash-landscape.png -gravity Center -resize x2048 -crop 1536x2048+0+0 screen\ios\Default-Portrait@2x~ipad.png
%convert% hires-splash-landscape.png -gravity Center -resize 2048 -crop 2048x1536+0+0 screen\ios\Default-Landscape@2x~ipad.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment