AVCaptureStillImageOutput.pngStillImageNSDataRepresentation?
<p>I am working with AVCaptureStillImageOutput for the first time, I save a JPEG image at some point.
Instead of a JPEG image I would like to save a PNG image. What do I need to do for that?</p>

<p>I have those 3 lines of code along the app:</p>

<pre><code>let stillImageOutput = AVCaptureStillImageOutput()
stillImageOutput.outputSettings = [AVVideoCodecKey:AVVideoCodecJPEG]
let imageData = AVCaptureStillImageOutput.jpegStillImageNSDataRepresentation(imageDataSampleBuffer)
</code></pre>

<p>Is there a simple way to modify those lines to get what I want?
After browsing the net, it seems like the anser is NO (unless I have not been lucky enough), nevertheless I still believe there must be some good solution.</p>