Skip to content
Snippets Groups Projects
Commit f7a0f9c2ff54 authored by Houzefa Abbasbhay's avatar Houzefa Abbasbhay :slight_smile:
Browse files

Merged in lmi/py3o.template/master-fix-image (pull request #49)

Fix images rendering with lowriter>=6.1
No related branches found
No related tags found
No related merge requests found
......@@ -96,6 +96,8 @@
NEXT
----
- Save embedded images into "Pictures" directory to work with lowriter>=6.0
- Rely on `babel`_ to format dates & numbers from now on.
-> ``format_date`` has been deprecated in favor of the new
......
......@@ -562,7 +562,7 @@
if isb64:
# we need to decode the base64 data to obtain the raw data version
data = b64decode(data)
identifier = hashlib.sha256(data).hexdigest()
identifier = "Pictures/" + hashlib.sha256(data).hexdigest()
self.template.set_image_data(identifier, data, mime_type=mime_type)
attrs = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment