LoginSignup
3
1

More than 5 years have passed since last update.

ワンライナーで色相を変えた画像をたくさん作る

Posted at

知ってると意外と便利かもしれない。ImageMagickを使用したワンライナー。

色を変えた画像をたくさん作れるので、見てるだけでも結構楽しい。

コマンド

# 環境
$ ls
target.png
$ mkdir results

# 変換スクリプト
$ seq 100 300 | xargs -n1 -I{} convert target.png -modulate 100,100,{} results/target_{}.png

解説

seqで100-300の数字を作り出し、色相パラメータを変えてコマンドを回す。

100が通常状態、300まで回すとちょうど色相環一周とのこと。

参考

3
1
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
3
1