title: How to save Qimage with 'jpeg' format in PyQt?
body: <p>I platform is <code>Windows7</code>, <code>Python3.4</code>, <code>PyQt5</code>.</p>
  <p>I found that I can not save a <code>QImage</code> object in format <code>jpeg</code>.</p>
  <pre><code>&gt;&gt;&gt; from PyQt5 import QtCore, QtGui
  &gt;&gt;&gt; i = QtGui.QImage()
  &gt;&gt;&gt; i.load(r&quot;C:\Users\paleneutron\Pictures\Capture4.PNG&quot;)
  True
  &gt;&gt;&gt; i.save(r&quot;C:\Users\paleneutron\Pictures\hehe.jpg&quot;)
  False
  &gt;&gt;&gt; i.save(r&quot;C:\Users\paleneutron\Pictures\hehe.jpg&quot;,format = 'jpeg')
  False
  &gt;&gt;&gt; i.save('hehe.png')
  True
  &gt;&gt;&gt; i.save('hehe.bmp')
  True
  &gt;&gt;&gt; i.save('hehe.jpg')
  False
  &gt;&gt;&gt; i.save('hehe.jpeg')
  False
  </code></pre>
  <p>In <a href="http://doc.qt.io/qt-5/qimage.html#save" rel="nofollow noreferrer">this page</a>, <code>jpeg</code> is supported both read and write.</p>
  <p>Why I got false when doing that?</p>
  <h2>EDIT</h2>
  <p>I checked supported formats as comment:</p>
  <pre><code>&gt;&gt;&gt; QtGui.QImageWriter.supportedImageFormats()
  [PyQt5.QtCore.QByteArray(b'bmp'), PyQt5.QtCore.QByteArray(b'pbm'), PyQt5.QtCore.QByteArray(b'pgm'), PyQt5.QtCore.QByteArray(b'png'), PyQt5.QtCore.QByteArray(b'ppm'), PyQt5.QtCore.QByteArray(b'xbm'), PyQt5.QtCore.QByteArray(b'xpm')]
  </code></pre>
  <p>The problem is here, <code>jpeg</code> is missing!</p>
  <p>But I have <code>qjpeg.dll</code> in <code>C:\Python34\Lib\site-packages\PyQt5\plugins\imageformats</code>.What should I do to enable <code>jpeg</code> in my program?</p>