Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Downloading Multiple Images
https://www.tinywebgallery.com/forum/viewtopic.php?f=1&t=1939
Page 1 of 1

Author:  trinkel [ 24. Apr 2009, 17:43 ]
Post subject:  Downloading Multiple Images

Is it possible to somehow mark several images for download and then run that as a batch?

We have a website that is an image gallery for a synchronized skating team that parents upload to. Now we are trying to make scrapbooks and parents are trying to download a lot of images - but not all images. Drilling down through an image to download it and then back out to get the next is kind of a hassle.

I understand that there is a way to eliminate a step having a click on the preview download the image rather than opening it (enable_direct_download I think), but it seems to me that stray clicks could end up downloading many unwanted images.

I tried having someone select multiple images in the JFU uploader and downloading them, but they have to name each picture instead of just accepting the original name and downloading all images at once. It would be nice if I could do something with the TWG explorer sidebar in the gallery.

If you need to look at the site, I can send a login by PM.

T.

Author:  TinyWebGallery [ 24. Apr 2009, 17:50 ]
Post subject: 

In TWG you can enable download as zip if you provide a zip with all images.
See: http://www.tinywebgallery.com/en/faq.php#h19

And in JFU you can also enable download as zip. You only have to make sure that the zip file can be created on the fly.

- Michael

Author:  trinkel [ 24. Apr 2009, 18:31 ]
Post subject: 

TinyWebGallery wrote:
And in JFU you can also enable download as zip. You only have to make sure that the zip file can be created on the fly.


How would you create the zip file on the fly?

Author:  TinyWebGallery [ 24. Apr 2009, 18:40 ]
Post subject: 

it's created temporary in the same directory as the files are.

Any you have to enable it in the config.

- Michael

Author:  trinkel [ 24. Apr 2009, 18:58 ]
Post subject: 

The only thing I found in the config was "$enable_download_as_zip=true;".
This is enabled for me but the description sounds as if it is just for premade zip files.

I also selected several images in JFU but couldn't find a way to download as zip.

Author:  TinyWebGallery [ 24. Apr 2009, 19:11 ]
Post subject: 

You use JFU - why do you dig around in the tfu_config.php?
ALL settings are set in the backend and loaded from the database. And these settings do overwrite the settings in tfu_config.php (They are actually set in my_tfu_config.php)

- Michael

Author:  trinkel [ 24. Apr 2009, 19:59 ]
Post subject: 

Oh, now I get it.

I tried enabling zip through the JFU config. I selected a bunch of images and ran the download. It allowed me to name the zip file and said it was preparing the download, but it didn't take very long and the download was only 4k. What is the maximum number or size of a download, or where is it specified?

Author:  TinyWebGallery [ 24. Apr 2009, 20:16 ]
Post subject: 

Check if you have a tfu.log in the tfu directory. Maybe the zip file was getting too big. Start with only 2 smaller files to check if it works.

Which version of JFU are you using?

- Michael

Author:  trinkel [ 24. Apr 2009, 22:02 ]
Post subject: 

JFU is 2.8.1

This was in tfu.log:

04.24.2009 21:26:44 - File cannot be processed because not enough memory is available! Needed: ~127206400. Available: 83886080

I have memory set to 80M in php.ini. The images are about 5.5mb each.

T.

Author:  TinyWebGallery [ 24. Apr 2009, 22:27 ]
Post subject: 

have you tried with 2 files only?

- Michael

Author:  trinkel [ 24. Apr 2009, 22:35 ]
Post subject: 

A small quantity of files does work.

Author:  TinyWebGallery [ 24. Apr 2009, 22:53 ]
Post subject: 

Problem is that the zip is created in memory. and php can only do the amount that fits into memory.

for TWG you can create the zip manually like I have described before.

- Michael

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/