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