2014-10-07 137 views
0

我從輸入的文本形式的文本,並創建PNG文件,如:如何從png文件中刪除透明區域?

enter image description here enter image description here

,如果你看一下例子png文件,找到那些有一定的透明區域。 我的目標是刪除與imagemagick或PHP GD。

是否有可能?

+0

試試這個'convert input.png -transparent:red out.png' – 2014-10-07 20:38:15

+0

或者只是轉換成不支持透明度的JPEG格式......'convert input.png output.jpg' – 2014-10-07 20:39:41

+0

1:-transparent:red not工作! 2:我需要PNG文件將它合成到另一張圖片上。 3:任何解決方案? – Nastary 2014-10-07 20:43:54

回答

0

我想我有解決方案:

convert NyRQK.png -background red -alpha remove out.png 

當然,你可以改變redwhite或其他任何你喜歡的顏色。

enter image description here

+0

這很好,但我需要刪除透明區域,而不是用另一種顏色填充... – Nastary 2014-10-07 21:33:11

相關問題