Changeset 23646
- Timestamp:
- 11/05/09 21:37:03 (4 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/pkImageConverterPlugin/trunk/lib/pkImageConverter.class.php
r23609 r23646 34 34 } 35 35 36 static public function scaleToFit($fileIn, $fileOut, 37 $width, $height, $quality = 75) 36 static public function scaleToFit($fileIn, $fileOut, $width, $height, $quality = 75) 38 37 { 39 38 if ($width === false) { … … 56 55 } 57 56 58 static public function cropOriginal($fileIn, $fileOut, $width, $height, 59 $quality = 75) 57 static public function cropOriginal($fileIn, $fileOut, $width, $height, $quality = 75) 60 58 { 61 59 $width = ceil($width); … … 383 381 } 384 382 } 385 #Bounding box goes to stderr, not stdout! Charming383 // Bounding box goes to stderr, not stdout! Charming 386 384 $cmd = "(PATH=$path:\$PATH; export PATH; gs -sDEVICE=bbox -dNOPAUSE -dFirstPage=1 -dLastPage=1 -r100 -q " . escapeshellarg($file) . " -c quit) 2>&1"; 387 385 $in = popen($cmd, "r");