Re: is the size of a gif = sum of its parts?

by Byron Canfield <barn(at)byronc.com>

 Date:  Tue, 14 Apr 1998 15:22:02 -0700
 To:  JAY ECKLES <ECKJE(at)rhodes.edu>,
HWG-GRAPHICS(at)hwg.org
 In-Reply-To:  rhodes
  todo: View Thread, Original
At 03:51 PM 4/14/98 -0500, JAY ECKLES wrote:
>If you have one large gif that consists of a black background with six 
>vertically aligned red rectangles with white anti-aliased text on them,
>will the file size of this large gif be the same as the sum of the file
>sizes of six smaller gifs, each one consisting of one of the rectangles 
>and immediately surrounding background of the larger gif?

Maybe yes; maybe no. In many cases, the smaller portions of the overall GIF
can be color indexed to only the colors used in each individual portion,
making its size, as a portion, smaller than if it is part of the whole. On
the other hand, if all resulting pieces contain exactly the same number of
colors as the large one, then the sum would be equal or possibly even
slightly larger (some multiple file overhead).

Barn
(Byron Canfield)
http://www.byronc.com
================================
    "Inside every large problem
     there is a small problem struggling to get out."
          --Hoare's Law of Problem Solving

HWG: hwg-graphics mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.