jDownloads Support Forum

jDownloads for Joomla 3.x => jDownloads 3.9 (Support ended) => Topic started by: zadazdaz on 05.02.2021 10:58:06

Title: Recreate thumbnail if file size has changed
Post by: zadazdaz on 05.02.2021 10:58:06
Hi,

can someone tell me how to change 'scan.php' file so thumb is regenerated if file size has changed?

As name remains the same on file updates, file size is a good hint to tell that fila ha changed somehow and thumb should be regenerated. At least, for PDF files.

Thanks.
Title: Re: Recreate thumbnail if file size has changed
Post by: ColinM on 05.02.2021 16:54:49
Hi
If you want to reset the default size of ALL  thumbnails then use the Remake all Thumbnails in jD Options - Pictures & Buttons tab


But I would suggest a better solution is to use in jD Options - Pictures & Buttons tab, the 'option 'How long is a Download UPDATED' 

This will give a 'button' showing it is updated but you do need to also set the 'Mark Download as Updated' field in the updating process - this is to distinguish a say a minor correction to the Description as opposed to a real update such as a new file.

Colin
Title: Re: Recreate thumbnail if file size has changed
Post by: zadazdaz on 05.02.2021 17:56:25
Hi ColinM thanks,

but i'll study a solution to do it automatically at scan time (than run every 10mn trough cron), we have more than 10K files and growing, this just can't be done manually...
Title: Re: Recreate thumbnail if file size has changed
Post by: ColinM on 07.02.2021 10:51:49
Hi

Let us know how you get on
Colin