fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added support for <abstrakt>
[librarian.git]
/
librarian
/
cover.py
diff --git
a/librarian/cover.py
b/librarian/cover.py
index
21eedc3
..
0266b4e
100644
(file)
--- a/
librarian/cover.py
+++ b/
librarian/cover.py
@@
-142,6
+142,8
@@
class Cover(object):
self.title = book_info.title
if format is not None:
self.format = format
self.title = book_info.title
if format is not None:
self.format = format
+ if width and height:
+ self.height = height * self.width / width
scale = max(float(width or 0) / self.width, float(height or 0) / self.height)
if scale >= 1:
self.scale = scale
scale = max(float(width or 0) / self.width, float(height or 0) / self.height)
if scale >= 1:
self.scale = scale