Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #196364

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

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Greg Ewing <greg.ewing@canterbury.ac.nz>
Newsgroups comp.lang.python
Subject Re: in a program like this, it makes NO difference , whether i save as PNG or GIF ? (size?)
Date Thu, 4 Jul 2024 03:36:50 +1200
Lines 10
Message-ID <lel9gjF7ijsU1@mid.individual.net> (permalink)
References <v614q9$1m6mo$2@dont-email.me> <m2sewqaffl.fsf@cochabamba-1.kpn>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net dHbl7tMvOtWOVCSiVRZfywt+e+BM1iJb6tad2uu6OkFvUqLTmL
Cancel-Lock sha1:BuaMFesjPSnYWcvrTh3Z2p6wxlo= sha256:pDNG+NijdZk4R3w2qoQBUtwJWsRJhSLM09HhvlYgwDM=
User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:91.0) Gecko/20100101 Thunderbird/91.3.2
Content-Language en-US
In-Reply-To <m2sewqaffl.fsf@cochabamba-1.kpn>
Xref csiph.com comp.lang.python:196364

Show key headers only | View raw


On 3/07/24 11:22 pm, Pieter van Oostrum wrote:
> In general a 'PNG' image has better quality than 'GIF'. In a 'PNG' image all the pixels that the program generated are still present, exactly as they were generated. In a 'GIF' image, however, pixels may have been altered in order to accommodate a smaller file size.

I think you're thinking of JPEG. PNG and GIF both use lossless 
compression, however GIF only supports 8-bit colour and 1-bit 
transparency. For images with no more than 256 distinct colours, PNG and 
GIF will probably give identical results.

-- 
Greg

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

in a program like this, it makes NO difference , whether i save as PNG or GIF ? (size?) HenHanna <HenHanna@devnull.tb> - 2024-07-02 08:02 -0700
  Re: in a program like this, it makes NO difference , whether i save as PNG or GIF ? (size?) Pieter van Oostrum <pieter-l@vanoostrum.org> - 2024-07-03 13:22 +0200
    Re: in a program like this, it makes NO difference , whether i save as PNG or GIF ? (size?) Greg Ewing <greg.ewing@canterbury.ac.nz> - 2024-07-04 03:36 +1200
      Re: in a program like this, it makes NO difference , whether i save as PNG or GIF ? (size?) HenHanna <HenHanna@devnull.tb> - 2024-07-03 10:31 -0700
        Re: in a program like this, it makes NO difference , whether i save as PNG or GIF ? (size?) Greg Ewing <greg.ewing@canterbury.ac.nz> - 2024-07-04 10:24 +1200
      Re: in a program like this, it makes NO difference , whether i save as PNG or GIF ? (size?) Pieter van Oostrum <pieter-l@vanoostrum.org> - 2024-07-05 13:54 +0200

csiph-web