Changeset 334 for trunk/lib/ImageThumb.inc.php
- Timestamp:
- May 13, 2008 4:14:53 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/ImageThumb.inc.php
r331 r334 33 33 'dest_file_perms' => 0600, 34 34 35 // Permissions of auto created directories. Must be at least 0700 with owner=apache.35 // Permissions of auto-created directories. Must be at least 0700 with owner=apache. 36 36 'dest_dir_perms' => 0700, 37 37 … … 63 63 'dest_file_extension' => 'jpg', 64 64 65 // Type of scaling to perform, and sizes used to calculate max dimen tions.65 // Type of scaling to perform, and sizes used to calculate max dimensions. 66 66 'scaling_type' => IMAGETHUMB_FIT_LARGER, 67 67 'width' => null, … … 158 158 * @param array $spec The specifications for a size of output image. 159 159 * @param int $index The position of the specification in the spec array 160 * Use to overwrite existing spe varray values.160 * Use to overwrite existing spec array values. 161 161 */ 162 162 function setSpec($spec, $index=null) … … 229 229 230 230 /* 231 * Retr eive a value of a thumb specification.231 * Retrieve a value of a thumb specification. 232 232 * 233 233 * @access public 234 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 retr eive. The first if not specified.235 * @param int $index The index in the spec array of the value to retrieve. The first if not specified. 236 236 * @return mixed Value of requested index. 237 237 * @author Quinn Comendant <quinn@strangecode.com> … … 297 297 $app =& App::getInstance(); 298 298 299 // Source file determin ted by provided file_name.299 // Source file determined by provided file_name. 300 300 $source_file = realpath(sprintf('%s/%s', $this->getParam('source_dir'), $file_name)); 301 301 … … 415 415 } 416 416 417 // If > 0, there was a problem thumb nailing.417 // If > 0, there was a problem thumb-nailing. 418 418 return 0 === $return_val; 419 419 } … … 508 508 list($source_image_width, $source_image_height, $source_image_type) = getimagesize($source_file); 509 509 510 // Define destination image dimen tions.510 // Define destination image dimensions. 511 511 switch ($spec['scaling_type']) { 512 512 case IMAGETHUMB_FIT_WIDTH :
Note: See TracChangeset
for help on using the changeset viewer.