From ba86d6242b2d2ff713f3db4725adcabbfb9f1cce Mon Sep 17 00:00:00 2001 From: Bernie Innocenti Date: Sat, 18 Apr 2015 00:52:35 -0400 Subject: [PATCH] Autorotate image thumbnails. --- geekigeeki.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/geekigeeki.py b/geekigeeki.py index e15db21..1891fdd 100755 --- a/geekigeeki.py +++ b/geekigeeki.py @@ -649,7 +649,7 @@ class Page: emit_header(self._mtime()) print('\n') print("%s: %s" % (config_get('site_name', "Unconfigured Wiki"), text)) - print(' ') + print(' ') if not name: print(' ') @@ -665,10 +665,8 @@ class Page: print(' ' \ % relative_url('?a=edit&q=' + name, privileged=True)) - history = config_get('history_url') - if history is not None: - print(' ' \ - % relative_url(history + '?a=rss')) + print(' ' \ + % relative_url(name + '?a=atom')) print('') @@ -692,6 +690,7 @@ class Page: else: print(' ' + text + ' ') print(' | ' + link_tag('FindPage', 'Find Page', cssclass='navlink')) + history = config_get('history_url') if history: print(' | Recent Changes') if name: @@ -781,7 +780,8 @@ class Page: if 'maxwidth' in args: import subprocess sys.stdout.flush() - subprocess.check_call(['gm', 'convert', self._filename(), + subprocess.check_call(['convert', self._filename(), + '-auto-orient', '-orient', 'TopLeft', '-scale', args['maxwidth'].value + ' >', '-']) else: body = self.get_raw_body() -- 2.25.1