title: Convert HEIF photo to JPEG for uploading to backend
body: <p>I'm maintaining an app for uploading photos from iPhone to a backend service. Currently this service doesn't support the new HEIF format, so is there any way to have the Photos framework convert the photo data to jpeg?</p>
  
  <p>I use <a href="https://developer.apple.com/documentation/photos/phimagemanager/1616957-requestimagedata" rel="noreferrer">PHImageManager.requestImageData(for:options:resultHandler:)</a> to retrieve a Data object from the image which I then upload to a REST API. </p>