title: How to convert image from png to jpg in jimp?
body: <p>I read the docs: <a href="https://github.com/oliver-moran/jimp" rel="nofollow noreferrer">https://github.com/oliver-moran/jimp</a></p>
  
  <p>But could not find how to convert an image from png to jpg.</p>
  
  <p>I must have missed something obvious.</p>
  
  <p>Using jimp on my server with Node.js.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>image.scaleToFit(500, 500, Jimp.RESIZE_BICUBIC).quality(60).write("./public/images/uploads/thumb"+req.file.filename, function(err) {
  </code></pre>