|
@@ -1467,10 +1467,10 @@ function dol_add_file_process($upload_dir, $allowoverwrite=0, $donotupdatesessio
|
|
|
{
|
|
|
// Create small thumbs for image (Ratio is near 16/9)
|
|
|
// Used on logon for example
|
|
|
- $imgThumbSmall = vignette($destpath, $maxwidthsmall, $maxheightsmall, '_small', 50, "thumbs");
|
|
|
+ $imgThumbSmall = vignette($destpath, $maxwidthsmall, $maxheightsmall, '_small', 50, "thumbs", IMAGETYPE_PNG);
|
|
|
// Create mini thumbs for image (Ratio is near 16/9)
|
|
|
// Used on menu or for setup page for example
|
|
|
- $imgThumbMini = vignette($destpath, $maxwidthmini, $maxheightmini, '_mini', 50, "thumbs");
|
|
|
+ $imgThumbMini = vignette($destpath, $maxwidthmini, $maxheightmini, '_mini', 50, "thumbs", IMAGETYPE_PNG);
|
|
|
}
|
|
|
|
|
|
setEventMessages($langs->trans("FileTransferComplete"), null, 'mesgs');
|