Re: PNG? [was Re: ANNC: PortaCello3]

From: Kenny Tilton (ktilton_at_nyc.rr.com)
Date: 04/21/04


Date: Wed, 21 Apr 2004 03:15:47 GMT


Simon Alexander wrote:

> Kenny Tilton <ktilton@nyc.rr.com> writes:
>
>>Whoa, I just now told ImageMagick to write it out as PNG instead of JPG and
>>it came out five times bigger, twice as big as GIF. Do those numbers sound
>>right? Oh, OK, a BMP comes out five times /bigger/ than the PNG, and I know
>>the GIF is controversial for the compression algorithm.
>
>
> Kenny, you have just discovered the difference between lossless and lossy
> compression. Meaning that lossless compression will encode exactly the same
> image you started with....

I had never heard of PNG, just assumed it was some FSF alternative to
something. I didn't know GIF was lossy, tho. That explains a
long-standing mystery about why PhotoShop would not allow GIF saves of
certain color modes.

>
> JPEG - lossy, with 'quality' parameter
> GIF - lossy, pallete based colour
> PNG - lossless, with 'compression' parameter (just like gzip, higher is
> more compression but will cost more CPU to decompress
> BMP - lossless, no compression, windows standard
>
> Out of all these options, PNG is the best if you care about image fidelity
> more than bandwidth, JPEG is probably best if your priorities are the
> other way around.

Yeah, I'll stick with PNG for screen shots. The Savages of CLIM really
hate my eye-candy, so I want to rub it in as much as possible. :)

I must say, I had been surprised at how bad the JPGs looked, but I never
put two and two together. I have played a lot with JPGs to see what
difference various qualities made and always thought JPG compression was
splendid. Probably it breaks down more noticeably because of the small
type and antialiasing.

Thx for the info.

kenny

-- 
Home? http://tilton-technology.com
Cells? http://www.common-lisp.net/project/cells/
Cello? http://www.common-lisp.net/project/cello/
Why Lisp? http://alu.cliki.net/RtL%20Highlight%20Film
Your Project Here! http://alu.cliki.net/Industry%20Application


Relevant Pages

  • Re: My browser shuts down when attempting to view my website
    ... ability to convert images to jpg and gif formats, ... When you insert an image that is say 1600x1200 pixels into your Publisher ... compression feature, in theory resamples and resizes, and thus compresses ...
    (microsoft.public.publisher.webdesign)
  • Re: How to make a picture sharp on web page?
    ... GIF format is a paletted format with a maximum of 256 colors, ... JPG format is a raster format, ... but uses a "lossy" compression algorithm that causes the quality ...
    (microsoft.public.frontpage.programming)
  • Re: Super Hires Image Library
    ... The compression does not produce ... save them in GIF format, ... By saving them as JPG, ... By saving as a GIF, ...
    (comp.sys.apple2)
  • Re: The long-awaited BGS marker sample page has arrived.
    ... The originals I used were adapted from GIF, ... GIF is better than JPG for images with large regions of a solid ... cartoonlike pictures or drawings with few colors. ... or PNG. ...
    (misc.transport.road)
  • Re: Why does PHP seem to favor PNG over JPG and GIF files?
    ... > As I am learning PHP and seeing examples of handling graphics using the ... > heard of PNG files before. ... > I have JPG and GIF images I want to be able to display on a web site ...
    (comp.lang.php)