in a program like this, it makes NO difference , whether i save as PNG or GIF ? (size?)

Liste des GroupesRevenir à cl python 
Sujet : in a program like this, it makes NO difference , whether i save as PNG or GIF ? (size?)
De : HenHanna (at) *nospam* devnull.tb (HenHanna)
Groupes : comp.lang.python
Date : 02. Jul 2024, 17:02:32
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v614q9$1m6mo$2@dont-email.me>
User-Agent : Mozilla Thunderbird
in a program like this, it makes NO difference
                               whether i save as PNG  or  GIF ?
                                  (is one smaller than the other?)
black= (0,0,0)
white= (255,255,255)  .............
from PIL import Image
from PIL import ImageDraw
def newImg():
     img = Image.new('RGB', (120, 120))
     for i in range(100):
        img.putpixel((10+i,10+i),   (red, black, white)[i%3])
     img.save('test.gif')
     return img

Date Sujet#  Auteur
2 Jul 24 * in a program like this, it makes NO difference , whether i save as PNG or GIF ? (size?)6HenHanna
3 Jul 24 `* Re: in a program like this, it makes NO difference , whether i save as PNG or GIF ? (size?)5Pieter van Oostrum
3 Jul 24  `* Re: in a program like this, it makes NO difference , whether i save as PNG or GIF ? (size?)4Greg Ewing
3 Jul 24   +* Re: in a program like this, it makes NO difference , whether i save as PNG or GIF ? (size?)2HenHanna
4 Jul 24   i`- Re: in a program like this, it makes NO difference , whether i save as PNG or GIF ? (size?)1Greg Ewing
5 Jul 24   `- Re: in a program like this, it makes NO difference , whether i save as PNG or GIF ? (size?)1Pieter van Oostrum

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal