|
![](/i/fill.gif) |
On Fri, 16 Nov 2001 00:18:16 +0200, Tero Kukola wrote:
> Offtopic:
> Is there a command line image manipulation tool which can:
> * add alpha channel to an image by using another image as source (both pngs)
> * convert png to targa and preserve the alpha channel
The combination of pngtopnm, ppmtopgm, and pnmtopng should be able to solve
the first problem; note the -alpha option to pnmtopng.
The second problem can't be solved with the pnm utils because they don't
support alpha in TGA images, but both the ppm and TGA formats are simple
enough that you might be able to make it work if you know how a TGA file
should store alpha.
--
#local R=rgb 99;#local P=R-R;#local F=pigment{gradient x}box{0,1pigment{gradient
y pigment_map{[.5F pigment_map{[.3R][.3F color_map{[.15red 99][.15P]}rotate z*45
translate x]}]#local H=pigment{gradient y color_map{[.5P][.5R]}scale 1/3}[.5F
pigment_map{[.3R][.3H][.7H][.7R]}]}}}camera{location.5-3*z}//only my opinions
Post a reply to this message
|
![](/i/fill.gif) |