LoginSignup
10
10

More than 5 years have passed since last update.

特定のディレクトリの@2xの画像リストから、@2xではない画像を作成するシェルスクリプト

Last updated at Posted at 2012-12-26

@2x.png 画像をのこしたまま、.png 画像を作成する

for f in *@2x.png; do convert -geometry 50% $f  "${f%@2x.png}.png"; done

retain用の画像に@2xをつける。

for f in *.png ; do mv $f ${f%.png}@2x.jpg ;done

imagemagickが入っていること前提です..

10
10
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
10
10