<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1498" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Lluís,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>If you are using PNG, it is possible you only get 
256 colours. Put these statements in your mapfile (comment out your existing 
outputformat and imagetype, if any), and check whether it gets any 
better:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>OUTPUTFORMAT<BR>&nbsp; NAME jpeg<BR>&nbsp; DRIVER 
"GD/JPEG"<BR>&nbsp; MIMETYPE "image/jpeg"<BR>&nbsp; IMAGEMODE RGB<BR>&nbsp; 
EXTENSION "jpg"<BR>&nbsp; FORMATOPTION "QUALITY=80" <BR>END</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>IMAGETYPE jpeg</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>When I mentioned about changing the image size, I 
meant in your template. Do you have an "&lt;image" statement around your [img] 
parameter, and if so, is the width of it the same as the mapimage in your 
mapfile?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Jacob</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>JACOB DELFOS<BR>SPATIAL INFORMATION 
ANALYST<BR>Maunsell Australia Pty Ltd<BR>629 Newcastle Street, WA 6007<BR>PO Box 
81, WA 6902<BR>Leederville <BR>Western Australia<BR>ABN 20 093 846 
925</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Tel&nbsp;&nbsp;&nbsp;&nbsp; + 61 8 9281 
6185<BR>Fax&nbsp;&nbsp;&nbsp; + 61 8 9281 6297<BR><A 
href="mailto:jacob.delfos@maunsell.com">jacob.delfos@maunsell.com</A></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>-----Original Message-----<BR>From: Lluís Garcia i 
Mestres [mailto:lluisgm@gmail.com] <BR>Sent: 19 April 2005 15:40<BR>To: Jacob 
Delfos<BR>Cc: <A 
href="mailto:MAPSERVER-USERS@lists.umn.edu">MAPSERVER-USERS@lists.umn.edu</A><BR>Subject: 
Re: [UMN_MAPSERVER-USERS] Image resolution</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I didn´t change the image size, it's the original 
from the tfw. My tif<BR>is a composition of 6 RGB and is displayed as a raster 
layer in the<BR>correct position. The resolution of the image and the map is 
the<BR>same:72 dpi.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>The output format is png, and I think the problem 
should be there.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Lluís</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><BR>On 4/19/05, Jacob Delfos &lt;<A 
href="mailto:jacob.delfos@maunsell.com">jacob.delfos@maunsell.com</A>&gt; 
wrote:<BR>&gt; Is your map-image being displayed at its normal resolution, or 
did you<BR>&gt; specify a size for the image ( &lt;img width=x height=x ) which 
does not match<BR>&gt; your map-image size?<BR>&gt; Or are you by any chance 
using GIF as an output format? Or another format<BR>&gt; that is not rgb? 
Sometimes using indexed colour (8bit, 256 colours) can<BR>&gt; create the 
illusion of reduced resolution, because pixels of similar colour<BR>&gt; get 
merged.<BR>&gt;&nbsp; <BR>&gt; Regards,<BR>&gt;&nbsp; <BR>&gt; 
Jacob<BR>&gt;&nbsp; <BR>&gt;&nbsp; <BR>&gt;&nbsp; <BR>&gt; -----Original 
Message-----<BR>&gt; From: UMN MapServer Users List 
[mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On<BR>&gt; Behalf Of Lluís Garcia i 
Mestres<BR>&gt; Sent: 18 April 2005 22:04<BR>&gt; To: <A 
href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU">MAPSERVER-USERS@LISTS.UMN.EDU</A><BR>&gt; 
Subject: [UMN_MAPSERVER-USERS] Image resolution<BR>&gt;&nbsp; <BR>&gt; Hi 
<BR>&gt;&nbsp; <BR>&gt; I'm working with a tif file of 0,5 meter per pixel. I 
don't know why,<BR>&gt; when I check this tif out of mapserver the quality is 
greater than<BR>&gt; when I display it in my mapserver application. I´ve try 
with different<BR>&gt; resolution in the map file but the quality is still the 
same.<BR>&gt;&nbsp; <BR>&gt; Thanks<BR>&gt;&nbsp; <BR>&gt; Lluís<BR>&gt;<BR><A 
href="mailto:jacob.delfos@maunsell.com"></A></FONT></DIV></BODY></HTML>