schmitzal / tinyimg

TYPO3-Extension which compresses images (png & jpg) uploaded in the backend with the tinypng API
GNU General Public License v3.0
15 stars 11 forks source link

Add possibility to trigger the compression script for existing File Mount (s) #9

Closed InvisibleKind closed 6 years ago

InvisibleKind commented 7 years ago

Hi,

It would be great to add a possibility to trigger scale for all existing images in selected filemount(s). Such a feature can be implemented as Scheduler Task. Main use case for it: website is already running with tons of images, which need to be compressed.

schmitzal commented 7 years ago

Hey.

Thanks for your feature request. I'll have a look at it tomorrow, as I'm going to progress with version 1.1.0.

Best

InvisibleKind commented 7 years ago

Thank you for a fast response. One thing came into my mind: the files in processed folder should be ignored by such triggered compression script.

schmitzal commented 7 years ago

Of course, as this would fill the limit of compressions available in the tinypng account :) But the processed files should be deleted, so they will be smaller in file size when generated again.