At the end of function add_uploaded_file (file admin/include/functions_upload.inc.php) we force generation of the thumbnail. It can't work for a PDF file (or any file using a representative picture), because we don't provide therepresentative_ext to Derivatives manager. We should provide it.
By the way, it would be smarter to force generation on the Medium size. Then the upload form will HTTP request the thumbnail, which Piwigo will generate from the Medium.
At the end of function `add_uploaded_file` (file `admin/include/functions_upload.inc.php`) we force generation of the thumbnail. It can't work for a PDF file (or any file using a representative picture), because we don't provide the`representative_ext` to Derivatives manager. We should provide it.
By the way, it would be smarter to force generation on the Medium size. Then the upload form will HTTP request the thumbnail, which Piwigo will generate from the Medium.
<!-- github-sync-id:409835035 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
At the end of function
add_uploaded_file(fileadmin/include/functions_upload.inc.php) we force generation of the thumbnail. It can't work for a PDF file (or any file using a representative picture), because we don't provide therepresentative_extto Derivatives manager. We should provide it.By the way, it would be smarter to force generation on the Medium size. Then the upload form will HTTP request the thumbnail, which Piwigo will generate from the Medium.