Here's hoping effbot is around :)
I have a really simple situation where I have 2 png images, and open them
so:
'>>> iconBallImage =
Image.open('sam pleTextures/iconBall.png'). resize(Dimensio nSize)
'>>> iconShieldImage =
Image.open('sam pleTextures/iconShield.png' ).resize(Dimens ionSize)
The 2nd image has an alpha channel with transparency. The first one also
has an alpha channel, but is fully opaque. Then I paste the second image
into the first image:
'>>> iconBallImage.p aste(iconShield Image, (10,10))
Then I save:
'>>> iconBallImage.s ave('sampleText ures/output.png')
When I view "output.png " in the Gimp, I see that the transparent bits in
the second image appear as a grey-crosshatching pattern. There is an
alpha channel in the new image, but I expected to see that bits of the
original first image would peer through the transparent bits of the
original second image.
I fully expect I am doing something wrong here, I just don't know what.
Thanks
Caleb
I have a really simple situation where I have 2 png images, and open them
so:
'>>> iconBallImage =
Image.open('sam pleTextures/iconBall.png'). resize(Dimensio nSize)
'>>> iconShieldImage =
Image.open('sam pleTextures/iconShield.png' ).resize(Dimens ionSize)
The 2nd image has an alpha channel with transparency. The first one also
has an alpha channel, but is fully opaque. Then I paste the second image
into the first image:
'>>> iconBallImage.p aste(iconShield Image, (10,10))
Then I save:
'>>> iconBallImage.s ave('sampleText ures/output.png')
When I view "output.png " in the Gimp, I see that the transparent bits in
the second image appear as a grey-crosshatching pattern. There is an
alpha channel in the new image, but I expected to see that bits of the
original first image would peer through the transparent bits of the
original second image.
I fully expect I am doing something wrong here, I just don't know what.
Thanks
Caleb
Comment