[mapserver-users] change image size for REAL

Assefa Yewondwossen assefa at dmsolutions.ca
Tue Apr 2 13:15:54 EST 2002


Hi There,

try the following : $map->set("width", 400) before the the redraw.

Best Regrads

Scott D Cogan wrote:

> i am trying to change the image size that gets drawn with mapscript using
> the $image=$map->draw() function.
>
> i change the dimensions before drawing each time:
> $map->width=400;
> $map->height=400;
>
> and i have changed the dimensions of the image in the HTML code.
> this works, but the problem is that it doesnt REALLY change the output size
> of the actual GIF image i am using.  all that happens is that the 600x600
> image gets scaled down to whatever size i told it to.  this is unacceptable
> because in scaling down, many border lines are lost and the image is
> confusing.  any ideas?
> -scott

--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056
Fax:   (613) 565-0925
----------------------------------------------------------------





More information about the mapserver-users mailing list