diff --git a/htdocs/admin/company.php b/htdocs/admin/company.php
index 37ccdb9d8dc..290162ae715 100644
--- a/htdocs/admin/company.php
+++ b/htdocs/admin/company.php
@@ -70,7 +70,9 @@ if ( (isset($_POST["action"]) && $_POST["action"] == 'update')
// Create thumbs of logo
if ($isimage > 0)
{
- $imgThumbSmall = vignette($conf->societe->dir_logos.'/'.$original_file, 200, 100, '_small',80);
+ $quality = 80;
+
+ $imgThumbSmall = vignette($conf->societe->dir_logos.'/'.$original_file, 200, 100, '_small', $quality);
if (eregi('([^\\\/:]+)$',$imgThumbSmall,$reg))
{
$imgThumbSmall = $reg[1];
@@ -79,7 +81,7 @@ if ( (isset($_POST["action"]) && $_POST["action"] == 'update')
else dolibarr_syslog($imgThumbSmall);
// Création de la vignette de la page "Société/Institution"
- $imgThumbMini = vignette($conf->societe->dir_logos.'/'.$original_file, 100, 30, '_mini',80);
+ $imgThumbMini = vignette($conf->societe->dir_logos.'/'.$original_file, 100, 30, '_mini', $quality);
if (eregi('([^\\\/:]+)$',$imgThumbMini,$reg))
{
$imgThumbMini = $reg[1];
diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang
index a305ffa8908..e4be3d4c604 100644
--- a/htdocs/langs/en_US/admin.lang
+++ b/htdocs/langs/en_US/admin.lang
@@ -114,7 +114,7 @@ DoNotStoreClearPassword=Do no store clear passwords in database
MainDbPasswordFileConfEncrypted=Password of the database encrypted in conf.php
ConfigFileIsInReadOnly=The file conf.php is in read only, check the rights.
ProtectAndEncryptPdfFiles=Protection and encryption of the pdf generated
-ProtectAndEncryptPdfFilesDesc=protecting a document requires to encrypt it, which increases the processing time a lot.
This can cause a PHP time-out in some cases, especially if the document contains images or fonts.
You can solve this problem by increasing the variable memory_limit with 16M in the php.ini, or if you do not have access to the php.ini, create a .htaccess in root of the site and add this line: