title: nodejs Sharp: transparent into white
body: <p>I am using Nodejs Sharp to transcode/resize png images into jpg. Is there way to replace transparent with white (or other light color) rather than black? I found solution for an older library but Sharp seems to be fastest and greatest.</p>
  
  <p>.background does not work</p>
  
  <pre><code>.then( data =&gt; Sharp(data.Body)
    .resize(SIZES[resize_type].width, SIZES[resize_type].height)
    .max()
    .withoutEnlargement()
    .background("white")
    .toFormat('jpeg')
    .toBuffer()
  )
  </code></pre>