diff --git a/IPython/frontend/qt/console/console_widget.py b/IPython/frontend/qt/console/console_widget.py
index 60f6052..ff0271f 100644
--- a/IPython/frontend/qt/console/console_widget.py
+++ b/IPython/frontend/qt/console/console_widget.py
@@ -544,7 +544,7 @@ class ConsoleWidget(Configurable, QtGui.QWidget):
                 # predictable...
                 img_re = re.compile(r'<img src="(?P<name>[\d]+)" />')
                 f.write(img_re.sub(
-                    lambda x: self.image_tag(x, path = path, format = "PNG"),
+                    lambda x: self.image_tag(x, path = path, format = "png"),
                     str(self._control.toHtml().toUtf8())))
             finally:
                 f.close()
@@ -574,7 +574,7 @@ class ConsoleWidget(Configurable, QtGui.QWidget):
                 html = ('<html xmlns="http://www.w3.org/1999/xhtml">\n'+
                         html[offset+6:])
                 f.write(img_re.sub(
-                    lambda x: self.image_tag(x, path = None, format = "SVG"),
+                    lambda x: self.image_tag(x, path = None, format = "svg"),
                     html))
             finally:
                 f.close()
diff --git a/IPython/frontend/qt/console/rich_ipython_widget.py b/IPython/frontend/qt/console/rich_ipython_widget.py
index 076118e..b0a9893 100644
--- a/IPython/frontend/qt/console/rich_ipython_widget.py
+++ b/IPython/frontend/qt/console/rich_ipython_widget.py
@@ -132,7 +132,7 @@ class RichIPythonWidget(IPythonWidget):
         (e.g., link, embedded image, ...).  As a side effect, files may
         be generated in the directory given by path."""
 
-        if(format == "PNG"):
+        if(format == "png"):
             try:
                 image = self._get_image(match.group("name"))
             except KeyError:
@@ -156,7 +156,7 @@ class RichIPythonWidget(IPythonWidget):
                 return '<img src="data:image/png;base64,\n%s\n" />' % (
                     re.sub(r'(.{60})',r'\1\n',str(ba.toBase64())))
 
-        elif(format == "SVG"):
+        elif(format == "svg"):
             try:
                 svg = str(self._name_to_svg[match.group("name")])
             except KeyError: