I have a photo gallery site. Each post has 10-20 photos. I want to be able to offer a download of my photos on post-by-post basis in a single zip file. In other words a link to a zip file with all those photos zipped up. How do I do that?
Is there a plugin for that?
David Walsh has a php script that will zip files in an array. All that you would need to do is put all of the full size image src’s in an array and pass them to the script.
Instead of doing it programatically, I would zip up the images and upload the zip as an attachment with a link in the content area.
If you’re set on zipping the files automatically, make sure you account for performance issues if your files are large. I don’t know of a plugin that does this.