X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=phd_pp.py;h=0e2657362cbf783e5cf4849dac0291992283e370;hb=fe4bce9590c69ed2462445365173b3d3d233a87b;hp=d1ad2a1374c87e9536884530dca46c4f0afa5d8d;hpb=6c0230d219726b6219f9cd0d5e061afacfc58d0f;p=phdru.name%2Fphdru.name.git 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}