From fe4bce9590c69ed2462445365173b3d3d233a87b Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 14 May 2007 13:33:40 +0000 Subject: [PATCH] Added img_thumbnail_800_1024(). git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@63 7bb0bf08-9e0d-0410-b083-99cee3bf18b8 --- phd_pp.py | 5 +++++ 1 file changed, 5 insertions(+) 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} -- 2.39.5