Replace transparency in PNG images with white background

后端 未结 16 738
再見小時候
再見小時候 2020-11-29 14:48

I\'ve got some PNG images with transparency, and I need to create versions with the image layer composed onto a white background. I\'ve tried various things with Image Magi

16条回答
  •  被撕碎了的回忆
    2020-11-29 15:52

    This works for me:

    convert -flatten img1.png img1-white.png
    

    Documentation references:

    • -flatten command-line option
    • -layers command-line option (-flatten is equivalent to -layers flatten)

提交回复
热议问题