You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The most strait forward solution would probably be to add an alpha channel to the image and selectively set the value to 0. But it's a bit tricky because we would have to lie the outside an use the real color type internally.
I recently ran into some images that image was unable to decode the transparency for.
Is this issue related to this image?
When I try working with that image it gives me an opaque black background instead of a transparent background as it should.
The most strait forward solution would probably be to add an alpha channel to the image and selectively set the value to 0. But it's a bit tricky because we would have to lie the outside an use the real color type internally.
This would be ideal from Servo's perspective. We convert RGB8 to RGBA8 in any case. At this stage we are not too worried about the overhead of copying the data.
Activity
nwin commentedon Dec 13, 2014
The most strait forward solution would probably be to add an alpha channel to the image and selectively set the value to 0. But it's a bit tricky because we would have to lie the outside an use the real color type internally.
retep998 commentedon Jan 12, 2015
I recently ran into some images that image was unable to decode the transparency for.

Is this issue related to this image?
When I try working with that image it gives me an opaque black background instead of a transparent background as it should.
Use lodepng for PNG loading because of image-rs/image#199
kmcallister commentedon Mar 26, 2015
Unfortunately this is blocking adoption in Servo, because a
tRNSchunk is used in Acid2. The base64 for that PNG file is:This would be ideal from Servo's perspective. We convert RGB8 to RGBA8 in any case. At this stage we are not too worried about the overhead of copying the data.
nwin commentedon Mar 26, 2015
Maybe I should just hack it in. We have to rewrite the decoder anyway to support streaming at some point.