From: Oleg Broytman Date: Mon, 14 May 2007 13:33:40 +0000 (+0000) Subject: Added img_thumbnail_800_1024(). X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=fe4bce9590c69ed2462445365173b3d3d233a87b;p=phdru.name%2Fphdru.name.git Added img_thumbnail_800_1024(). git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@63 7bb0bf08-9e0d-0410-b083-99cee3bf18b8 --- diff --git a/phd_pp.py b/phd_pp.py index d1ad2a1..0e26573 100644 --- a/phd_pp.py +++ b/phd_pp.py @@ -84,3 +84,8 @@ class phd_pp(Template): body = parts["body"].encode(encoding) parts = [part for part in (title, subtitle, body) if part] return "\n\n".join(parts) + + def img_thumbnail_800_1024(self, img_name): + return """\ +%(img_name)s-thumbnail.jpg
+800x600, 1024x800""" % {"img_name": img_name}