Imagemagick: remove alpha component (replace all intermediate alpha pixel with solid pixel)

前端 未结 2 1430
难免孤独
难免孤独 2020-12-31 01:18

To solve Android build issue I need to replace all intermediate alpha pixel with solid pixel (leaving transparent background as is).

How to that with ImageMagick or o

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-31 02:00

    To remove alpha channel from all pictures in the folder (f.ex. all .png files) I use following command (in terminal on macOS):

    for file in *.png; do convert $file -alpha deactivate; done
    

    Unfortunately, none of any other solution given in this thread worked for me.

提交回复
热议问题