diff --git a/src/libprs500/ebooks/lrf/__init__.py b/src/libprs500/ebooks/lrf/__init__.py index 9bebca7f2b..04a28ef80d 100644 --- a/src/libprs500/ebooks/lrf/__init__.py +++ b/src/libprs500/ebooks/lrf/__init__.py @@ -115,8 +115,9 @@ def option_parser(usage): '''the line spacing by FONT_DELTA pts. FONT_DELTA can be a fraction.''' """If FONT_DELTA is negative, the font size is decreased.""", dest='font_delta') - laf.add_option('--disable-autorotation', action='store_true', default=False, - help='Disable autorotation of images.', dest='disable_autorotation') + laf.add_option('--enable-autorotation', action='store_true', default=False, + help='Enable autorotation of images that are wider than the screen width.', + dest='autorotation') laf.add_option('--wordspace', dest='wordspace', default=2.5, type='float', help='Set the space between words in pts. Default is %default') laf.add_option('--blank-after-para', action='store_true', default=False, diff --git a/src/libprs500/ebooks/lrf/html/convert_from.py b/src/libprs500/ebooks/lrf/html/convert_from.py index 8e5fa14436..a89bbe04c1 100644 --- a/src/libprs500/ebooks/lrf/html/convert_from.py +++ b/src/libprs500/ebooks/lrf/html/convert_from.py @@ -888,7 +888,7 @@ class HTMLConverter(object): self.current_para.append(dc) return - if not self.disable_autorotation and width > pwidth and width > height: + if self.autorotation and width > pwidth and width > height: pt = PersistentTemporaryFile(suffix='.'+encoding.lower()) try: im = im.rotate(90)