##// END OF EJS Templates
Added 'jpeg' key
Jonathan Frederic -
Show More
@@ -63,7 +63,7 b' class ExtractFigureTransformer(ConfigurableTransformer):'
63 data = out[out_type]
63 data = out[out_type]
64
64
65 #Binary files are base64-encoded, SVG is already XML
65 #Binary files are base64-encoded, SVG is already XML
66 if out_type in ('png', 'jpg', 'pdf'):
66 if out_type in ('png', 'jpg', 'jpeg', 'pdf'):
67 data = data.decode('base64')
67 data = data.decode('base64')
68 elif sys.platform == 'win32':
68 elif sys.platform == 'win32':
69 data = data.replace('\n', '\r\n').encode("UTF-8")
69 data = data.replace('\n', '\r\n').encode("UTF-8")
General Comments 0
You need to be logged in to leave comments. Login now