maposmatic-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Maposmatic-dev] [PATCH] Create nicer thumbnails


From: Maxime Petazzoni
Subject: [Maposmatic-dev] [PATCH] Create nicer thumbnails
Date: Wed, 9 Sep 2009 16:49:02 +0200

---
 scripts/maposmaticd |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/maposmaticd b/scripts/maposmaticd
index 5874b75..03d8913 100755
--- a/scripts/maposmaticd
+++ b/scripts/maposmaticd
@@ -56,7 +56,7 @@ def render_job_process(job):
     if "png" in RENDERING_RESULT_FORMATS:
         mapimg = outfile_prefix + ".png"
         i = Image.open(mapimg)
-        i.thumbnail((200,200))
+        i.thumbnail((200,200), Image.ANTIALIAS)
         i.save(outfile_prefix + "_small.png")
 
     sys.exit(0)
-- 
1.6.3.3.210.g29cb3





reply via email to

[Prev in Thread] Current Thread [Next in Thread]