pancserzso
20th July 2011, 17:52
I am trying to merge two layers of RGBA sources. My script is as follows:
clip2 = ImageSource("x_alpha0458.png", pixel_type = "RGB32")
clip1 = ImageSource("x_alpha0470.png", pixel_type = "RGB32")
mix = Layer(clip1, clip2, "add")
return mix
My problem is, that Layer operation doesn't seem to support 8-bit alpha channel, only some kind of 1 bit alpha. Is it normal to occur? My images have a nice blending in Photoshop, but in Avisynth this is all I get (notice the strong, rought edges and the lack of proper blending)
http://i.imgur.com/ZjUVU.png (http://imgur.com/ZjUVU)
clip2 = ImageSource("x_alpha0458.png", pixel_type = "RGB32")
clip1 = ImageSource("x_alpha0470.png", pixel_type = "RGB32")
mix = Layer(clip1, clip2, "add")
return mix
My problem is, that Layer operation doesn't seem to support 8-bit alpha channel, only some kind of 1 bit alpha. Is it normal to occur? My images have a nice blending in Photoshop, but in Avisynth this is all I get (notice the strong, rought edges and the lack of proper blending)
http://i.imgur.com/ZjUVU.png (http://imgur.com/ZjUVU)