Piwigo / Piwigo-BatchDownloader

Allows users to download pictures sets from your Piwigo gallery in a ZIP file. Compatible with User Collections.
http://piwigo.org/ext/extension_view.php?eid=616
GNU General Public License v2.0
9 stars 12 forks source link

multiple sizes and non-image files #21

Closed plegall closed 3 years ago

plegall commented 6 years ago

For example, a TIFF file, with a JPEG pwg_representative, and the user wants the medium size.

With current version 2.2.3, you can add $conf['batch_download_additional_ext'] = array('tif', 'TIF', 'tiff', 'TIFF'); and you will be able to batch download TIFF files. If you ask for the "medium" size, you will get the original TIFF file, which might not be what the user expects.

I would like to change this behavior (and I will also do it in Download By Size to stay coherent) : if you have a pwg_representative, then you get the multiple size based on this image, instead of the original. Unfortunately it would not make sense for all file types. For example videos or multiple pages PDF file would not be correctly exported as a smaller size of their representative image.

We could have $conf['batch_download_use_representative_for_ext'] = array('tif', 'TIF');

I'm working on the Pull-Request.