fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Epub: only attach images referenced in the text.
[librarian.git]
/
librarian
/
picture.py
diff --git
a/librarian/picture.py
b/librarian/picture.py
index
d255f55
..
10d2ae7
100644
(file)
--- a/
librarian/picture.py
+++ b/
librarian/picture.py
@@
-154,7
+154,7
@@
class WLPicture(object):
return self.image_store.path(self.slug, self.mime_type)
def image_file(self, *args, **kwargs):
return self.image_store.path(self.slug, self.mime_type)
def image_file(self, *args, **kwargs):
- return open(self.image_path, *args, **kwargs)
+ return open(self.image_path,
'rb',
*args, **kwargs)
def get_sem_coords(self, sem):
area = sem.find("div[@type='rect']")
def get_sem_coords(self, sem):
area = sem.find("div[@type='rect']")