Changeset 256 for trunk/lib/ImageThumb.inc.php
- Timestamp:
- May 9, 2007 3:06:24 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/ImageThumb.inc.php
r247 r256 226 226 227 227 return $final_spec; 228 } 229 230 /* 231 * Retreive a value of a thumb specification. 232 * 233 * @access public 234 * @param string $key Key to return. See _default_image_specs above for a list. 235 * @param int $index The index in the spec array of the value to retreive. The first if not specified. 236 * @return mixed Value of requested index. 237 * @author Quinn Comendant <quinn@strangecode.com> 238 * @version 1.0 239 * @since 08 May 2007 15:26:39 240 */ 241 function getSpec($key, $index=null) 242 { 243 $index = isset($index) ? $index : 0; 244 return $this->_image_specs[$index][$key]; 228 245 } 229 246 … … 570 587 // Sharpen image using a custom filter matrix. 571 588 if (phpversion() > '5.1' && true === $spec['sharpen'] && $spec['sharpen_value'] > 0) { 572 $sharpen_value = round((((48 - 10) / (100 - 1)) * (100 - $spec['sharpen_value'])) + 10); 589 $sharpen_value = round((((48 - 10) / (100 - 1)) * (100 - $spec['sharpen_value'])) + 10); /// WTF is this math? 573 590 imageconvolution($dest_image_resource, array(array(-1,-1,-1),array(-1,$sharpen_value,-1),array(-1,-1,-1)), ($sharpen_value - 8), 0); 574 591 }
Note: See TracChangeset
for help on using the changeset viewer.