aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Services')
-rw-r--r--OpenSim/Services/MapImageService/MapImageService.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/OpenSim/Services/MapImageService/MapImageService.cs b/OpenSim/Services/MapImageService/MapImageService.cs
index ee424e1..736fa2e 100644
--- a/OpenSim/Services/MapImageService/MapImageService.cs
+++ b/OpenSim/Services/MapImageService/MapImageService.cs
@@ -144,7 +144,6 @@ namespace OpenSim.Services.MapImageService
144 } 144 }
145 else if (File.Exists(m_WaterTileFile)) 145 else if (File.Exists(m_WaterTileFile))
146 { 146 {
147 m_log.DebugFormat("[MAP IMAGE SERVICE]: File not found {0}, sending water", fileName);
148 return File.ReadAllBytes(m_WaterTileFile); 147 return File.ReadAllBytes(m_WaterTileFile);
149 } 148 }
150 else 149 else
@@ -188,7 +187,7 @@ namespace OpenSim.Services.MapImageService
188 else 187 else
189 { 188 {
190 // Create a new output tile with a transparent background 189 // Create a new output tile with a transparent background
191 Bitmap bm = new Bitmap(IMAGE_WIDTH, IMAGE_WIDTH); 190 Bitmap bm = new Bitmap(IMAGE_WIDTH, IMAGE_WIDTH, PixelFormat.Format24bppRgb);
192 bm.MakeTransparent(); 191 bm.MakeTransparent();
193 return bm; 192 return bm;
194 } 193 }
@@ -255,7 +254,7 @@ namespace OpenSim.Services.MapImageService
255 using (Bitmap final = new Bitmap(output)) 254 using (Bitmap final = new Bitmap(output))
256 { 255 {
257 output.Dispose(); 256 output.Dispose();
258 final.Save(outputFile); 257 final.Save(outputFile, ImageFormat.Jpeg);
259 } 258 }
260 } 259 }
261 catch (Exception e) 260 catch (Exception e)