Commit 9924a9e29ba05e0d1ceb17ab273529e69c5136ae
1 parent
b4d584df
more cleanup in thumbnail code, removed unnecessary option -size
Committed by: Paul Barrett
Showing
1 changed file
with
2 additions
and
2 deletions
plugins/thumbnails/thumbnails.php
| @@ -184,10 +184,10 @@ class thumbnailGenerator extends BaseProcessor | @@ -184,10 +184,10 @@ class thumbnailGenerator extends BaseProcessor | ||
| 184 | $pathConvert = (!empty($default->convertPath)) ? $default->convertPath : 'convert'; | 184 | $pathConvert = (!empty($default->convertPath)) ? $default->convertPath : 'convert'; |
| 185 | // windows path may contain spaces | 185 | // windows path may contain spaces |
| 186 | if (stristr(PHP_OS,'WIN')) { | 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 | else { | 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 | $result = KTUtil::pexec($cmd); | 193 | $result = KTUtil::pexec($cmd); |