importing/exporting images with a transparent background
jp.poccard at neuf.fr
Sun Dec 10 15:28:27 EST 2006
Le 9 déc. 06, à 19:00, Paolo Mazza a écrit :
> Dear Friends... I got a problem importing images with a transparent
> background... can you help me on this?
> 1-I imported a picture (png file made by another program) into
> 2-I modifyed the image with the eraser tool and I got an area with a
> trasparent backgroung (as expected)
> 3- I exported this image as png
> 4- I imported this emage again, and in MACOS the trasparent background
> white and the in WINDOWS the transparent backgound is black.
I have got similar problems with PNG images and transparency.
You can try this short experiment, , check if you get the same symptoms
1 (the paintcompression is set to PNG)
2 create any colored object
3 import a snapshot (of anything except the previous colored object
) and place it in front of the colored object
4 make a hole in the image, with the rubber for instance. Through the
hole, a part of the previous object can be seen,
(up to this point, no problem).
5 go to another card
6 come back to the card which contained the picture and its hole.
Here a problem may arise if the image is larger than approximately one
On my mac computer , the image is completely opaque, the hole is
closed, the rubbed out part of the image is now white.
Strangely if the image is small enough, the transparency is still there
this inconsistent behavior leads me to believe it is caused by a bug.
If the compression is set to RLE, no problem.
This is why I temporarily use only RLE compression, which is
sufficient for my needs, as long as I don't use translucency and
don't have to print the images.
More information about the Use-livecode