diff --git a/htdocs/product/photos.php b/htdocs/product/photos.php
index a6f154d233c..5c605a903b4 100644
--- a/htdocs/product/photos.php
+++ b/htdocs/product/photos.php
@@ -213,11 +213,11 @@ if ($_GET["id"] || $_GET["ref"])
print '
';
print '';
- print '
'.$langs->trans("File").': '.dolibarr_trunc($viewfilename,16);
+ print '
'.$viewfilename;
print '
';
// On propose la génération de la vignette si elle n'existe pas et si la taille est supérieure aux limites
- if (!$obj['photo_vignette'] && eregi('(\.jpg|\.jpeg|\.png)$',$obj['photo']) && ($product->imgWidth > $maxWidth || $product->imgHeight > $maxHeight))
+ if (!$obj['photo_vignette'] && eregi('(\.bmp|\.gif|\.jpg|\.jpeg|\.png)$',$obj['photo']) && ($product->imgWidth > $maxWidth || $product->imgHeight > $maxHeight))
{
print ''.img_refresh($langs->trans('GenerateThumb')).' ';
}