Results 1 to 4 of 4

Thread: Reducing forum bandwidth with optimized png

  1. #1
    Join Date
    Sep 2006
    Beans
    3,713

    Reducing forum bandwidth with optimized png

    I often use pngcrush, optipng, and advpng to compress and optimize PNG files. For example, rank_6.png, from this forum is originally 1474 bytes, but it can be reduced to 951 bytes with no change in visual quality. ubuntulogo.png is 5443 bytes vs 2669 bytes. Attached are the optimized images. I use the following script:
    Code:
    #!/bin/sh
    # ./pngoptimze.sh input.png output.png
    
    # Remove color profiles for IE so it renders correctly.
    pngcrush -rem gAMA -rem cHRM -rem iCCP -rem sRGB $1 $2
    
    # Reduce the size of the PNG IDAT data stream.
    optipng -o7 $2
    
    # Remove ancillary chunks, concatenate all individual IDAT chunks, then re-encode the combined PNG image file using the 7-Zip deflate method.
    advpng -z -4 $2
    exit
    These programs are all available in the universe repository (advpng is part of advancecomp) and might be worth looking at for the forum.
    Attached Images Attached Images

  2. #2
    Join Date
    Aug 2007
    Location
    Manchester, UK
    Beans
    10,285
    Distro
    Ubuntu

    Re: Reducing forum bandwidth with optimized png

    I didn't noticed a difference on the bean image. But the left hand curve of the Ubuntu logo is a different color

    Though I can see why this wouldn't be a bad idea with the volume of people who visit the forums.

  3. #3
    Join Date
    Sep 2006
    Beans
    3,713

    Re: Reducing forum bandwidth with optimized png

    Hhmm...a different color, you are correct. My previous tests on my sites didn't change, but I will find out which particular program changed the color.

    Edit: I found my mistake of missing the color change. Mirage doesn't show a color change between the logos, but Firefox does.
    Last edited by FakeOutdoorsman; August 23rd, 2008 at 02:42 AM.

  4. #4
    Join Date
    Sep 2006
    Beans
    3,713

    Re: Reducing forum bandwidth with optimized png

    It appears that pngcrush and advpng can change the colors, but optipng alone didn't change the colors and it decreased the logo size by 48.89% to 2782 bytes.
    Attached Images Attached Images
    Last edited by FakeOutdoorsman; August 23rd, 2008 at 02:59 AM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •