From 47f5f90ac1bfa9fb3b91d92a1fdbeb2073c1c5ca 2013-07-15 23:15:33 From: Jonathan Frederic Date: 2013-07-15 23:15:33 Subject: [PATCH] Added 'jpeg' key --- diff --git a/IPython/nbconvert/transformers/extractfigure.py b/IPython/nbconvert/transformers/extractfigure.py index 15d244d..4ff94b9 100755 --- a/IPython/nbconvert/transformers/extractfigure.py +++ b/IPython/nbconvert/transformers/extractfigure.py @@ -63,7 +63,7 @@ class ExtractFigureTransformer(ConfigurableTransformer): data = out[out_type] #Binary files are base64-encoded, SVG is already XML - if out_type in ('png', 'jpg', 'pdf'): + if out_type in ('png', 'jpg', 'jpeg', 'pdf'): data = data.decode('base64') elif sys.platform == 'win32': data = data.replace('\n', '\r\n').encode("UTF-8")