Changeset 16282
- Timestamp:
- 03/12/09 21:01:42 (4 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/pkImageConverterPlugin/trunk/lib/pkImageConverter.class.php
r15754 r16282 99 99 static public function scaleToNarrowerAxis($fileIn, $fileOut, $width, $height, $quality = 75) 100 100 { 101 $width = ceil($width); 102 $height = ceil($height); 103 $quality = ceil($quality); 101 104 list($iwidth, $iheight) = getimagesize($fileIn); 102 105 if (!$iwidth) { … … 116 119 $width, $height, $quality = 75) 117 120 { 121 $width = ceil($width); 122 $height = ceil($height); 123 $quality = ceil($quality); 118 124 if ($width === false) { 119 125 $scaleParameters = "-ysize " . ($height + 0); … … 129 135 $quality = 75) 130 136 { 137 $quality = ceil($quality); 131 138 $scaleParameters = $factor + 0; 132 139 return self::scaleBody($fileIn, $fileOut, $scaleParameters, $quality); … … 136 143 $quality = 75) 137 144 { 145 $width = ceil($width); 146 $height = ceil($height); 147 $quality = ceil($quality); 138 148 list($iwidth, $iheight) = getimagesize($fileIn); 139 149 if (!$iwidth) … … 209 219 static public function convertFormat($fileIn, $fileOut, $quality = 75) 210 220 { 221 $quality = ceil($quality); 211 222 return self::scaleBody($fileIn, $fileOut, false, $quality); 212 223 }