[mapserver-dev] strange behavior when size != gif size (UMN 5.4.2)

Steve Lime Steve.Lime at dnr.state.mn.us
Tue Sep 1 00:42:38 EDT 2009


Daniel: I just ran some local tests against the 5.4 branch and don't see the problem on my dev box (MacOS). I'm using the sample image you supplied and a mapfile like the one below. I'm using GD 2.0.35. Are you still having the issue? Perhaps something weird like multiple versions of GD on the system could cause artifacts like this.

Steve

MAP
  NAME 'testy'
  SIZE 200 200
  EXTENT 0 0 200 200

  IMAGETYPE PNG2

  OUTPUTFORMAT
    NAME PNG2
    DRIVER 'GD/PNG'
    MIMETYPE 'image/png'
    IMAGEMODE RGB
    EXTENSION 'png'
  END #OUTPUTFORMAT
  
  SYMBOL
    NAME 'some_gif_symbol'
    TYPE PIXMAP
    IMAGE "some_gif_symbol.gif"
  END

  LAYER
    NAME 'too_small'
    TYPE POINT
    STATUS DEFAULT
    FEATURE
      POINTS 30 20 END
    END
    CLASS
      STYLE
        SYMBOL 'some_gif_symbol'
        SIZE 10 # equals gif size -3 
      END
    END
  END

  LAYER
    NAME 'too_large'
    TYPE POINT
    STATUS DEFAULT
    FEATURE
      POINTS 50 100 END
    END
    CLASS
      STYLE
        SYMBOL 'some_gif_symbol'
        SIZE 16 # equals gif size +3
      END
    END
  END

  LAYER
    NAME 'just_right'
    TYPE POINT
    STATUS DEFAULT
    FEATURE
      POINTS 100 50 END
    END
    CLASS
      STYLE
        SYMBOL 'some_gif_symbol'
        SIZE 13
      END
    END
  END
END

>>> teeschke <daniel.teske at web.de> 08/20/09 10:24 AM >>>


OUTPUTFORMAT
	NAME png
	DRIVER 'GD/PNG'
	MIMETYPE 'image/png'
	IMAGEMODE RGB
	EXTENSION 'png'
END #OUTPUTFORMAT


-- 
View this message in context: http://n2.nabble.com/strange-behavior-when-size-gif-size-UMN-5-4-2-tp3479658p3479813.html
Sent from the Mapserver - Dev mailing list archive at Nabble.com.
_______________________________________________
mapserver-dev mailing list
mapserver-dev at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-dev



More information about the mapserver-dev mailing list