Has anyone had problems with IE not showing thumbnailed gifs when Firefox and NN show them fine?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jerrygarciuh

    Has anyone had problems with IE not showing thumbnailed gifs when Firefox and NN show them fine?

    Hello everyone,


    Wondering if anyone else has had problems with gifs created by php or if

    anyone sees a problem with this code.


    Symptom: created jpegs work fine and created gifs work fine in Netscape and

    Firefox and when directly viewed.


    IE displays gif fine *via internet* BUT off of a CD or local HTML file it

    won't display the file.


    I have run a dozen gifs through the process and it has happened to every one

    of them.


    Any advice?


    TIA,


    jg


    function thumbnail ($src_file, $path) {
    $orig = $path . '/' . $src_file;
    list($w,$h,$typ e) = getimagesize($o rig);
    if ($type == 2) { // jpeg
    $src_img = imagecreatefrom jpeg("$orig");
    $name = "thmb_" . $src_file;
    $thmb_and_path = $path . $name;
    if(!file_exists ($thmb_and_path )) {
    $image_info = getimagesize($o rig);
    $src_width = $image_info[0];
    $src_height = $image_info[1];
    $dest_height= 80;
    $dest_width = ($dest_height/$src_height) * $src_width;
    $quality = 30;
    $dst_img = imagecreatetrue color($dest_wid th,$dest_height );
    imagecopyresamp led($dst_img, $src_img, 0, 0, 0, 0, $dest_width,
    $dest_height, $src_width, $src_height);
    imagejpeg($dst_ img, $thmb_and_path, $quality);
    chmod("$thmb_an d_path", 0777);
    imagedestroy($s rc_img);
    imagedestroy($d st_img);
    }
    } else if ($type == 1) { // gif
    $src_img = imagecreatefrom gif("$orig");
    $name = "thmb_" . $src_file;
    $thmb_and_path = $path . $name;
    if(!file_exists ($thmb_and_path )) {
    $image_info = getimagesize($o rig);
    $src_width = $image_info[0];
    $src_height = $image_info[1];
    $dest_height= 80;
    $dest_width = ($dest_height/$src_height) * $src_width;
    $quality = 30;
    $dst_img = imagecreatetrue color($dest_wid th,$dest_height );
    imagecopyresamp led($dst_img, $src_img, 0, 0, 0, 0, $dest_width,
    $dest_height, $src_width, $src_height);
    imagejpeg($dst_ img, $thmb_and_path, $quality);
    chmod("$thmb_an d_path", 0777);
    imagedestroy($s rc_img);
    imagedestroy($d st_img);
    }
    }
    return $thmb_and_path;
    }




  • Andy Hassall

    #2
    Re: Has anyone had problems with IE not showing thumbnailed gifs when Firefox and NN show them fine?

    On Fri, 29 Oct 2004 13:59:04 -0500, "jerrygarci uh"
    <designs@no.spa m.nolaflash.com > wrote:
    [color=blue]
    >Wondering if anyone else has had problems with gifs created by php or if
    >anyone sees a problem with this code.
    >
    >
    >Symptom: created jpegs work fine and created gifs work fine in Netscape and
    >Firefox and when directly viewed.
    >
    >IE displays gif fine *via internet* BUT off of a CD or local HTML file it
    >
    >won't display the file.
    >
    >I have run a dozen gifs through the process and it has happened to every one
    >of them.
    >
    >Any advice?[/color]

    Is this one at a time, or the infamous IE bug where it randomly fails to
    display images if there's (a) lots of them on a page and (b) it's reading from
    a high speed medium [LAN or disk].

    --
    Andy Hassall / <andy@andyh.co. uk> / <http://www.andyh.co.uk >
    <http://www.andyhsoftwa re.co.uk/space> Space: disk usage analysis tool

    Comment

    • Theo

      #3
      Re: Has anyone had problems with IE not showing thumbnailed gifs when Firefox and NN show them fine?

      Andy Hassall <andy@andyh.co. uk> wrote in
      news:tk65o01dkj lejtjps745jghj2 nk3eu9e3k@4ax.c om:
      [color=blue]
      > Is this one at a time, or the infamous IE bug where it randomly fails
      > to
      > display images if there's (a) lots of them on a page and (b) it's
      > reading from a high speed medium [LAN or disk].
      >[/color]

      so thats why Ive been randomly seeing this as well the last few days on a
      page with quite a few large thumbs. I thought it was the code but I could
      never find the problem.

      This company can afford to pay many millions of dollars to get the best
      programmers in the world and spend many more millions in testing, yet stuff
      like this still happens. Shame, and more shame, nothing but shame.

      Comment

      • jerrygarciuh

        #4
        Re: Has anyone had problems with IE not showing thumbnailed gifs when Firefox and NN show them fine?

        Andy,

        Thnaks for the reply.

        The problem I am having occurs even when a single thumbnailed gif is alone
        on a page. It only occurs locally (eg from hard drive or cd). It only
        occurs with gifs, and the thumbs work fine in Firefox and Netscape.

        My suspicion is that the fact that the thumbs are created in Unix and work
        when delivered from Unix but not when they are housed on a Windows box is
        significant.

        I'll post back here if I find a solution.

        jg


        "Andy Hassall" <andy@andyh.co. uk> wrote in message
        news:tk65o01dkj lejtjps745jghj2 nk3eu9e3k@4ax.c om...[color=blue]
        > On Fri, 29 Oct 2004 13:59:04 -0500, "jerrygarci uh"
        > <designs@no.spa m.nolaflash.com > wrote:
        >[color=green]
        >>Wondering if anyone else has had problems with gifs created by php or if
        >>anyone sees a problem with this code.
        >>
        >>
        >>Symptom: created jpegs work fine and created gifs work fine in Netscape
        >>and
        >>Firefox and when directly viewed.
        >>
        >>IE displays gif fine *via internet* BUT off of a CD or local HTML file it
        >>
        >>won't display the file.
        >>
        >>I have run a dozen gifs through the process and it has happened to every
        >>one
        >>of them.
        >>
        >>Any advice?[/color]
        >
        > Is this one at a time, or the infamous IE bug where it randomly fails to
        > display images if there's (a) lots of them on a page and (b) it's reading
        > from
        > a high speed medium [LAN or disk].
        >
        > --
        > Andy Hassall / <andy@andyh.co. uk> / <http://www.andyh.co.uk >
        > <http://www.andyhsoftwa re.co.uk/space> Space: disk usage analysis tool[/color]


        Comment

        Working...