Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

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.

share|improve this answer

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.

share|improve this answer
    
Performance issues will not have much effect if the zipping is done upon UPLOADING (meaning - only one time) and not upon end-user request. the cropping functions of wordpress (post_thumbnail for example) will probably crash much before a zip function if memory is lacking. I have (an unpublished) plugin to do that , if anyone is interested . –  krembo99 Jul 3 '12 at 4:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.