GIF not drawing sometimes.

This is a discussion on GIF not drawing sometimes. within the Tech Board forums, part of the Community Boards category; I have been merging my two websites and basically redoing a lot of the stuff. I have come across a ...

  1. #1
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831

    GIF not drawing sometimes.

    I have been merging my two websites and basically redoing a lot of the stuff. I have come across a funny little problem.

    The top edge, bottom edge and the two side edges are frames. I have the frames set up to draw, and repeat, a tiny .GIF file in these borders. The .GIF is 16 x 1 pixels.

    9 times out of 10 it works fine, but sometimes it "misses" one of the edges, (just draws a white rectangle). Usually only one edge is missing, and which, would seem to be random.

    The corner pieces are also .GIF's but larger, 16 x 16. I've never seen these miss, and all the site contents draw fine, including some other small .GIF's used as vertical and horizontal dividers which are 24 x 1. I can make the edge .GIF's bigger of course, but I can't see why I should have to.

    Any insights anyone? (IE 6, SP1 and other patches).
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  2. #2
    RoD
    RoD is offline
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    Are you hosting the site yourself, or through a company? Also, do you have a link so that we can see the problem for ourselves?

  3. #3
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    The two old sites were hosted and the hosts became a pain, so I have Apache running here now, but I don't need to publish the page to see the effect, simply opening the .html file with IE does it.

    My firewall is not yet configured to pass http traffic so you can't come to the site yet, but next time it happens, I'll paste up a picture.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  4. #4
    RoD
    RoD is offline
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    Ok, i have to go to class and junk now, if its not fixed before i get home i'll have a looksy.

  5. #5
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Try clearing your browsers cache, I've found similar problems even on this site (eg the envelope icons don't always display).
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  6. #6
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    These two pictures show the effect.
    Attached Images Attached Images  
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  7. #7
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    ... and ...
    Attached Images Attached Images  
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  8. #8
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    Notice both edge components using the small left edge .GIF are missing in the second. The top edge is drawn correctly. I have six different colour schemas, all show the same problem sometimes! Resizing does not cause the missing .GIF to appear, but press refresh and there it is.

    Hammer: I'll try that.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  9. #9
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    heh... I see your problem. You're not using Opera.

    No, seriously.... that's weird. Is it just those gifs or is the rest of your display freaking out too?

  10. #10
    Registered User Vber's Avatar
    Join Date
    Nov 2002
    Posts
    807
    Adrian, this happens always? this happens only in IE? did you try in Opera, Mozilla or another browser?

  11. #11
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    >>> Is it just those gifs or is the rest of your display freaking out too?

    Just those 4 .GIF's everything else is fine. If you look at the pictures, the corner pieces, and the piece where the horizontal divider joins the edge are correct, they are .GIF's, the horizontal divider is also 24 x 1 .GIF repeated as many times as is necessary, that always works too. It is only the extreme edge pieces.

    >>> Adrian, this happens always?

    No. It happens about 1 in 10 draws.

    >>> only in IE? did you try in Opera, Mozilla or another browser?

    I only have IE, but if that is the problem, then I'll need to do it another way anyway. What is the point of a site which doesn't display right in one of the most popular browsers out there?
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  12. #12
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,825
    > What is the point of a site which doesn't display right in one of the most popular browsers out there?

    True, but make sure that your site doesn't *only* display correctly in IE, once you get it working. It's frustrating for those of us using other browsers to get goofy pages because someone decided to do something IE-only.

  13. #13
    Registered User Vber's Avatar
    Join Date
    Nov 2002
    Posts
    807
    >>I only have IE, but if that is the problem, then I'll need to do it another way anyway. What is the point of a site which doesn't display right in one of the most popular browsers out there?
    <<

    That's not my point. I just want to understand if the problem is in the source code of your page, if it works in Mozilla, so it's problem in the source code, and without seeing him, I can't help you too much, maybe you could upload the file somewhere, where we can see the code.

    >>True, but make sure that your site doesn't *only* display correctly in IE, once you get it working. It's frustrating for those of us using other browsers to get goofy pages because someone decided to do something IE-only.
    <<

    Well, to make a site 100% compatible with any browser that supports w3.org, easy, just develop him to Opera, and alone, all the site will work on ANY browser that works under w3. This is what I always do when I develop my sites, I like this way, haven't problem like, "your site don't work in mozilla blah blah".

  14. #14
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    Cheez:

    Yeah, I know. Thing is, I would seem to be using bog standard stuff here, so it should work on any reasonably up to date browser, (frame enabled).

    I think if I make the .GIF bigger, like the corner pieces which display correctly every time, the fault might disappear, but I'd like to know why that should be necessary.

    Vber:

    I'll see if I can put together a minimal page which shows the faults then zip the bits together and upload it.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  15. #15
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Why use frames? Why not tables? (design question, rather than solving your probem!)
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Drawing HBITMAP into CWnd, Acquired from "screenshot"
    By DeusAduro in forum Windows Programming
    Replies: 6
    Last Post: 07-02-2009, 03:41 PM
  2. Slow drawing code
    By tjpanda in forum Windows Programming
    Replies: 5
    Last Post: 05-09-2008, 05:09 PM
  3. Line Drawing Algorithm
    By Axpen in forum Game Programming
    Replies: 15
    Last Post: 08-01-2005, 06:30 PM
  4. How to do double buffing with win32 drawing?
    By Josh Kasten in forum Windows Programming
    Replies: 2
    Last Post: 03-26-2004, 11:02 PM
  5. drawing minimaps and radar screens.
    By Eber Kain in forum Game Programming
    Replies: 4
    Last Post: 03-08-2002, 10:44 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21