bugus "not a valid gif" errors

Issue #42 invalid
matteo sisti sette created an issue

Starting from recently, imagecreatefromgif() SYSTEMATICALLY fails to open EVERY gif I get from Google Maps static image api, with the bogus error message: "[filename here] is not a valid GIF file"

I don't know whether the gifs from google are 100% standard compliant, but they are ok enough to be viewed in the browser and in any image viewer, and hence imagecreatefromgif must be able to open them (whether or not it wants to emit a warning).

I'll attach three example gif images that trigger the issue.

Tested it on two different versions: Newer server:

GD Support  enabled
GD Version  bundled (2.0.34 compatible)
FreeType Support    enabled
FreeType Linkage    with freetype
FreeType Version    2.1.7
GIF Read Support    enabled
GIF Create Support  enabled
JPEG Support    enabled
libJPEG Version 6b
PNG Support enabled
libPNG Version  1.2.12
WBMP Support    enabled
XBM Support enabled

Older server:

GD Support  enabled
GD Version  bundled (2.0.28 compatible)
FreeType Support    enabled
FreeType Linkage    with freetype
FreeType Version    2.2.1
GIF Read Support    enabled
GIF Create Support  enabled
JPG Support enabled
PNG Support enabled
WBMP Support    enabled
XBM Support enabled

Comments (2)

  1. matteo sisti sette reporter

    Ok, sorry, turns out that the static map api has silently started returning png images by default where it used to return gifs. So these actually are not gif. Damn google

  2. Log in to comment