1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Clear image questions

Discussion in 'Off Topic' started by Dean, Sep 9, 2010.

  1. Dean

    Dean Well-Known Member

    Is a 'clear image' an image that does nothing and could be used as a place holder to retain certain formatting as if a real image is there?

    Can a clear image be made with jpg or gif?

  2. Lycaon

    Lycaon Well-Known Member

    I would say it needs to be a transparent gif. Otherwise, depending on it's colour and the forum, it may end up not being clear.
    Abomination likes this.
  3. Shadab

    Shadab Well-Known Member

    The clear images (usually named clear.gif, spacer.gif) were mainly used in table based layouts to fix alignments and maybe to prevent the empty cells from collapsing. But I haven't seen them being used much in CSS based layouts. And yes, they are just 1px by 1px transparent images.

    Such an image can be made with gif (preferred) and png formats; but not jpeg, since it doesn't support transparency.
    Abomination likes this.
  4. Dean

    Dean Well-Known Member

    Found an online gif creator program. Using the word 'transparent' instead of 'clear' was much more useful as a search term...

    Is the color ffffff transparent or white in a gif?
  5. Shadab

    Shadab Well-Known Member

    0xffffff is white.

    But I'm sure that the single pixel has no color information attached to it;
    which is why it's transparent.

    Haven't studied the binary representation of gif (or png, jpg) file format yet.
    Still playing with the bmp since it is the easiest. :p
    Abomination likes this.
  6. Dean

    Dean Well-Known Member

    I am experimenting with something on my existing forum. Is it possible to create a clear gif of a certain size such as 800 x 600 pixels?
  7. Shadab

    Shadab Well-Known Member

    Yes, you can create a fully transparent gif of any size you desire.

    But a 1 x 1 pixel transparent gif scaled to any size via html (see below) would produce exactly the same result, so most of the time theres no point in creating a clear image of any other size.

    <img src="clear-1x1.gif" width="800" height="600" alt="" />
    Abomination likes this.
  8. Dean

    Dean Well-Known Member

    Much thanks to both of you. :)
    Shadab likes this.

Share This Page