News:

Dear forum visitors, if the support forum is not available, please try again a few minutes later. Thanks!

Main Menu
Support-Forum

Recreate thumbnail if file size has changed

Started by zadazdaz, 05.02.2021 10:58:06

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

zadazdaz

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.
  •  

ColinM

#1
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
Colin M
  •  

zadazdaz

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...
  •  

ColinM

Colin M
  •