Dynamic Watermark / On-the-fly Zip Files problem
<p>Before I start, I can post up some code later. I'm in work just now but the problem's really bugging me! Hopefully I can explain it well enough.</p>

<p>I have two functions which work as expected on their own. One of them is displaying a watermark over my photographs. Because my client is fussy and changes things every other day, I decided to dynamically add the watermark when the image is requested.</p>

<p>It works by using my .htaccess file to redirect any requests made to my image directory to go through a watermark.php file. In this file (code to follow), the function picks up the requested image, applies the watermark and then outputs the result and alters the page headers to correspond with that file type.</p>

<p>This works as it should and I'm happy with that.</p>

<p>My other function is creating zip files on-the-fly of specific images (from an array) from this folder. The problem is that because the zip function doesn't go through my watermark.php file, the compressed images don't have the watermark attached.</p>

<p>Hopefully that makes sense. Does anyone have any suggestions on how to fix this? The only thing I've tried is updating the array URLs to go to watermark.php?src=image.jpg to see if that would work (instead of going direct to the image) but the resulting zip file was empty.</p>

<p>Any help / suggestions would be much appreciated :)</p>
