Skip to content
Snippets Groups Projects
Commit 81be4d9c authored by Carsten  Rose's avatar Carsten Rose Committed by bbaer
Browse files

Notes how to optimize PDF thumbnailing

parent 66edc74b
No related branches found
No related tags found
No related merge requests found
......@@ -169,9 +169,11 @@ class Thumbnail {
$ext = strtolower(OnString::strrstr($pathFilenameSource, '.'));
// SVG files are best to thumbnail via 'inkscape'
if ($ext == 'svg' && $this->inkscape != '') {
// if ( ($ext == 'svg' || $ext == 'pdf') && $this->inkscape != '') {
if (($ext == 'svg') && $this->inkscape != '') {
$inkscapeDimension = Token::explodeDimension($dimension);
// Automatically cut white border: --export-area-drawing
// --export-text-to-path
$cmdInkscape = $this->inkscape . " --without-gui $inkscapeDimension --export-png $pathFilenameThumbnail $pathFilenameSource";
$outputInkscape = Support::qfqExec($cmdInkscape, $rc);
if ($rc == 0) {
......
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