1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Imagemagickでosx appのアプリアイコン用にリサイズするワンライナー

Posted at
echo "1024 512 256 128 64 32 16" | tr ' ' '\n' | while read i; do convert -resize $i appicon.png "appicon$i.png" ; done

正方形の画像を用意して、
横幅サイズをスペース区切りで渡して、trで行ごとに分割、それぞれのサイズで convert -resizeにかけている

ちなみにPhotoShopをお持ちの方は

20x20 ios/20.png,29x29 ios/29.png,40x40 ios/40.png,58x58 ios/58.png,60x60 ios/60.png,76x76 ios/76.png,80x80 ios/80.png,87x87 ios/87.png,120x120 ios/120.png,152x152 ios/152.png,167x167 ios/167.png,180x180 ios/180.png,1024x1024 ios/1024.png

みたいに
ファイル名を工夫して 生成 > アセットを生成 にチェックを入れて保存
すると一気に生成してくれるみたいなのがあります

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?