Skip to content
This repository has been archived by the owner on Mar 15, 2020. It is now read-only.

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rupor-github committed Mar 27, 2018
1 parent 3c4ccc4 commit b6ff423
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion fb2mobi.config
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
<hyphensReplaceNBSP>True</hyphensReplaceNBSP>
<css parse="True">profiles/default.css</css>
<xslt>spaces.xsl</xslt>
<coverStamp>Center</coverStamp>
<coverStamp>None</coverStamp>
<coverTextFont>profiles/fonts/LinLibertine_RBah.ttf</coverTextFont>
<generateOPFGuide>True</generateOPFGuide>
<dropcaps>None</dropcaps>
Expand Down
1 change: 1 addition & 0 deletions modules/fb2html.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions synccovers.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import os, sys, traceback
import os, sys

import argparse
import version
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit b6ff423

Please sign in to comment.