From b6ff42321966daf4b995c9207662aeabc455f8ab Mon Sep 17 00:00:00 2001 From: rupor Date: Tue, 27 Mar 2018 07:42:21 -0400 Subject: [PATCH] Cleanup --- fb2mobi.config | 2 +- modules/fb2html.py | 1 + synccovers.py | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/fb2mobi.config b/fb2mobi.config index 010e766..c60b844 100644 --- a/fb2mobi.config +++ b/fb2mobi.config @@ -81,7 +81,7 @@ True profiles/default.css spaces.xsl - Center + None profiles/fonts/LinLibertine_RBah.ttf True None diff --git a/modules/fb2html.py b/modules/fb2html.py index 4dfd003..e36cc11 100644 --- a/modules/fb2html.py +++ b/modules/fb2html.py @@ -1376,6 +1376,7 @@ def generate_cover(self): im = im.resize((int(self.screen_height * im.width / im.height), self.screen_height), Image.LANCZOS) self.stamp_cover(im) + # im.save(full_name, optimize=True, quality=50) im.save(full_name) if not self.kindle: diff --git a/synccovers.py b/synccovers.py index 0f65a84..7a16a2a 100644 --- a/synccovers.py +++ b/synccovers.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- -import os, sys, traceback +import os, sys import argparse import version @@ -40,8 +40,8 @@ def process_file(infile, kindle_dir, width, height, stretch, verbose): else: if verbose: print("Skipping - no ASIN") except: - print('ERROR: processing file.') - traceback.print_exc() + print('ERROR: processing file "{}".'.format(infile)) + # traceback.print_exc() return