Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6185831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:47:00+00:00 2026-05-24T01:47:00+00:00

I was noticing that a GIF was being displayed with padding in FireFox 5

  • 0

I was noticing that a GIF was being displayed with padding in FireFox 5 and IE 8. When I viewed the image size via FireBug, I noticed that it was a few pixels larger than expected.

Expected height: 160px vs. actual height: 171px

When I opened the GIF in an image editor, the editor displayed the correct dimensions, however when I ran ImageMagick identify I received the following information:

newGif.gif GIF 200x160 200x171+0+5 PseudoClass 256c 30kb 

If I modified the geometry to 200×160+0+0 the image displayed as I expected it to in FireFox. FireFox and IE 8 seemed to be referencing the Image’s page geometry rather than dimensions! Is my analysis correct and if so is this true for all image types or just GIF’s?

Updated, I have included an image for your viewing pleasure! This image displays as 200 x 171 for me in FF, but is actually 200 x 160 when you download and view in a graphics program.

here is the image

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T01:47:01+00:00Added an answer on May 24, 2026 at 1:47 am

    Header of this GIF file does not correspond to it’s body.
    enter image description here

    Image dimensions are stored in 6th to 9th bytes and from the screen shot you can see that dimensions in the header are 00C8 x 00AB which is 200×171 but it’s actual size is 200×160

    So this image is not valid. There are no standardized behavior for parsing invalid gifs and that’s why there is this inconsistency.

    Most probably firefox preallocates place for images before they are fully downloaded, when an image is fully downloaded it is put into the center of preallocated space. and because preallocated space is 200×171 but the actual image is 200×160 you will see a border.

    EDIT: After going through GIF format reference it appears that GIF does allow this. So the image is valid. So here’s what’s actually going on here:
    GIF format consists from several blocks. There is a header block and one or more(if the image is animated) image blocks (there could be other blocks as well, but they are not connected with the issue). Header block holds some information about the image, including it’s width and height. However each image block has it’s own width and height as well. So what happens with the image in question that it has the main image size as 200×171 but the single frame with the size 200×160. So most editing programs and libraries which doesn’t support animated gifs will extract the first frame and display it with the size 200×160 the browsers and editors which do support animation should display it with the full size of 200×171.

    PS Every image block has image top and image left position. It seems that by allowing frames to be smaller than canvas, and allowing to move frame’s position on the canvas, GIF’s developers tried to shave couple of bytes of the animated gif files. I wonder if any of the modern graphic editors take advantage of that… probably not… 🙂

    1. GIF format byte order
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm reading a text file via CGI in, in perl, and noticing that when
I'm noticing a problem that has crept up a few times over the years,
I'm noticing that a:visited styles don't work on links that are requested via JavaScript.
A few weeks ago I started noticing that my VS displays some warnings twice.
I'm noticing that, if the ThreadPool max thread count for my IO-intensive app is
After reading several questions regarding problems with compilation (particularly C++) and noticing that in
I'm collecting text through a web form and noticing that when it is collected
In backbone.js, I'm noticing that the change and all events on a Model do
Upon reviewing a bunch of MVC style web applications, I'm noticing that it's common
I'm currently testing an OpenID implementation, and I'm noticing that Google sends a different

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.