[OpenLayers-Users] Large PNG image degraded when inserted into smaller DIV

Eric Lemoine eric.c2c at gmail.com
Fri May 16 18:09:11 EDT 2008


On Thu, May 15, 2008 at 8:48 PM, Jeremy Short <jshort at lodgingcompany.com> wrote:
> I have a 24 bit PNG image 3872 by 2904 pixels (4 by 3 proportion) which
> when rendered in a DIV with those dimensions looks decent, but big.
>
> I want to display this image within a smaller div 400 by 300 pixels to
> make it manageable in terms of screen size and so I can use the zoom
> tool usefully.  However when I do this it degrades the image such that
> the writing is jagged and not nearly as crisp, especially noticeable
> when I zoom in a couple of levels.
>
> Eventually, I'll be retrieving the image from Mapserver via tiling but I
> want to make sure I can render the full size image properly before I
> proceed.

If you use MapServer it'll be the one responsible for down-sampling
your image. And it'll probably be better than your browser to do so. I
might be wrong, but that's my feeling.

--
Eric



More information about the Users mailing list