Sample Code:
import Image, ImageDraw
firmada = Image.open("base trans.gif")
dibujo = ImageDraw.Draw(firmada)
dibujo.text ([50,50],"texto")
firmada.save ("prueba.gif")
Gedece, Python Newbie
> However when I read the file and try something on it and then save it
> under a new name, the transparency goes away
I don't think PIL saves GIFs with transparency at all - at least it didn't
last time I played with it, which is one reason I wrote this:
http://www.doxdesk.com/software/py/gifWriter.html
--
Andrew Clover
mailto:a...@doxdesk.com
http://www.doxdesk.com/
> I don't think PIL saves GIFs with transparency at all - at least it didn't
> last time I played with it, which is one reason I wrote this:
>
> http://www.doxdesk.com/software/py/gifWriter.html
Wow, I really really thank you, I'll check it and besides using it, I'll
see what I can learn from it, as it has some nice functions from what
I've already read of the code.
Gedece