Commit 9924a9e29ba05e0d1ceb17ab273529e69c5136ae

Authored by Paul Barrett
1 parent b4d584df

more cleanup in thumbnail code, removed unnecessary option -size

Committed by: Paul Barrett
plugins/thumbnails/thumbnails.php
... ... @@ -184,10 +184,10 @@ class thumbnailGenerator extends BaseProcessor
184 184 $pathConvert = (!empty($default->convertPath)) ? $default->convertPath : 'convert';
185 185 // windows path may contain spaces
186 186 if (stristr(PHP_OS,'WIN')) {
187   - $cmd = "\"{$pathConvert}\" -size 200x200 \"{$pdfFile}[0]\" -resize 200x200 \"$thumbnailfile\"";
  187 + $cmd = "\"{$pathConvert}\" \"{$pdfFile}[0]\" -resize 200x200 \"$thumbnailfile\"";
188 188 }
189 189 else {
190   - $cmd = "{$pathConvert} -size 200x200 {$pdfFile}[0] -resize 200x200 $thumbnailfile";
  190 + $cmd = "{$pathConvert} {$pdfFile}[0] -resize 200x200 $thumbnailfile";
191 191 }
192 192  
193 193 $result = KTUtil::pexec($cmd);
... ...