From 5ad423c15e1fd985262b205c6e7e3ff2fd85bf06 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Tue, 10 Dec 2013 19:59:19 +0100 Subject: [PATCH] Limit image size also in HTML. --- dosagelib/events.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dosagelib/events.py b/dosagelib/events.py index 17573214d..e51e03afb 100644 --- a/dosagelib/events.py +++ b/dosagelib/events.py @@ -182,11 +182,15 @@ class HtmlEventHandler(EventHandler): """Write HTML entry for downloaded comic.""" if self.lastComic != comic.name: self.newComic(comic) + size = getDimensionForImage(filename, MaxImageSize) imageUrl = self.getUrlFromFilename(filename) pageUrl = comic.referrer if pageUrl != self.lastUrl: self.html.write(u'
  • %s\n' % (pageUrl, pageUrl)) - self.html.write(u'
    \n' % imageUrl) + self.html.write(u'
    \n') if text: self.html.write(u'
    %s\n' % text) self.lastComic = comic.name