PHP: how can I convert jpeg to png and then zip (without making a copy)
<p>So what I'm trying to do is:
- given an image url -> convert image to png
- zip resulting png</p>

<p>I have the following code which successfully does the conversion and zipping (I'm going to expand it later to test the extension to auto convert formats):</p>

<pre><code>$file = "../assets/test.jpg";
$img = imagecreatefromjpeg($file);
imagePng($img, "files/temp.png" );
$zip-&gt;addFile( "files/temp.png", "test.png" );
</code></pre>

<p>What I want to know is, is it possible to do this without creating a copy of image before it's zipped</p>
