Skip to content
Snippets Groups Projects
Commit c9e6546e authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX #5524 set width and height for thumbnails

parent 7a91b908
No related branches found
No related tags found
No related merge requests found
...@@ -252,7 +252,7 @@ while ($queryResult=$stmt1->fetchObject()) { ...@@ -252,7 +252,7 @@ while ($queryResult=$stmt1->fetchObject()) {
/*$command = "convert -thumbnail 400x600 -background white -alpha remove " . escapeshellarg($pathToFile) . "[0] " /*$command = "convert -thumbnail 400x600 -background white -alpha remove " . escapeshellarg($pathToFile) . "[0] "
. escapeshellarg($outputPathFile);*/ . escapeshellarg($outputPathFile);*/
/* convert all pdf pages to img, without resize, low quality */ /* convert all pdf pages to img, without resize, low quality */
$command = "convert -density 100x100 -quality 65 -background white -alpha remove " . escapeshellarg($pathToFile) . " ". escapeshellarg($outputPathFile); $command = "convert -density 100x100 -thumbnail 400x600 -quality 65 -background white -alpha remove " . escapeshellarg($pathToFile) . " ". escapeshellarg($outputPathFile);
} else { } else {
$posPoint = strpos($pathToFile, '.'); $posPoint = strpos($pathToFile, '.');
$extension = substr($pathToFile, $posPoint); $extension = substr($pathToFile, $posPoint);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment