X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/4e329824f40367945de11d3647396859092f5c2c..665c88719c108626edee864affe07b085d28b7b4:/librarian/picture.py diff --git a/librarian/picture.py b/librarian/picture.py index d255f55..10d2ae7 100644 --- 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 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']")