diff --git a/htdocs/lib/files.lib.php b/htdocs/lib/files.lib.php index 5dbaaf8aaa2..b2648591f20 100644 --- a/htdocs/lib/files.lib.php +++ b/htdocs/lib/files.lib.php @@ -662,7 +662,7 @@ function dol_convert_file($file,$ext='png') if ($ret) { $count = $image->getNumberImages(); - $ret = $image->writeImages( $file . "." . $ext, true ); + $ret = $image->writeImage( $file . "." . $ext, true ); if ($ret) return $count; else return -3; }