質問

特定のサイズ(ピクセル)で写真を生成する必要があります。各画像には、インクリメント数が含まれています。それが写真、数字にあるすべてです。 Photoshopを使用することを考えていましたが、スクリプトがどのように機能するかわかりません。私が使用できる提案や例はありますか?

役に立ちましたか?

解決

ImageMagick(http://www.imagemagick.org)とそのテキスト処理feautures(http://www.imagemagick.org/usage/text/)を使用してみてください。

他のヒント

ImageMagickを使用してそれを行う方法は次のとおりです。

#!/bin/bash
for i in {0..3}; do
   echo Generating $i...
   convert -size 256x256 xc:black \
           -gravity south -background orange -splice 0x20 -annotate +0+2 "$i" image-$i.png
done

そして結果:

enter image description here enter image description here enter image description here enter image description here

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top