0
1

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 で channel ごとの画像を指定して RGBA 画像を生成するメモ

Posted at

背景

RGB 画像の特定の channel を入れ替えたい.

glTF で metallicGlossness texture を作りたい. B channel に metalness, G channel に glossiness を指定する必要がある.

ImageMagick

-channel, -combine あたりを使う.

元データが grayscale の場合

$ convert metalness.png glossiness.png -background black -channel GB -combine metallicRoughness.png

として, G に metalness.png, B に glosiness.png の RGBA 画像が生成できる.

TODO

  • RGB(A) 画像の G channel を A に差し替えなど. -channel-fx を使うといけるか?
0
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?