31
Discussion & Troubleshooting / Re: Changing File Extentions
« on: July 11, 2013, 02:54:43 AM »They are real zip files I zipped them to save space but wanted to add the mod to allow people to select WP sizes and for that you need actual images.Interesting,
I am assuming you are talking about adding my Mod (multi download sizes) ?
The way I think I understand your site. You have the actual images uploaded to your site as zip files so when the user clicks on the download buttom, they are downloading the zip file containing the jpg image?
Are you creating the thumbnails and preview images by hand before you upload the zip file because I do not think they would be created on the fly when uploading zip files.
The way I unserstand it, my mod would have to unzip the image to the tmp folder? maybe, resize it for whatever size they selected, and then store that new resized image in the big folder for later downloads. Not sure how much I would have to change to pull that off.
Can you PM me or post a link to your site so I can see what you are working with?
As far as doing what you are posting and changing the zip files back to image files. Not only would you have to unzip each one individually, you would also need to modify the database entry for each one to point to the new image file instead of the zip file.
It may be possible to create a script to do both of those things but would need more info before I would think about trying it.