Changeset 9119 for trunk/wp-admin/includes/image.php
- Timestamp:
- 10/10/2008 06:21:16 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/image.php
r9053 r9119 14 14 * thumbnail will be created as a jpeg. 15 15 * 16 * @since unknown16 * @since 1.2.0 17 17 * 18 18 * @param mixed $file Filename of the original image, Or attachment id. … … 28 28 * Crop an Image to a given size. 29 29 * 30 * @internal Missing Long Description 31 * 32 * @since unknown 33 * 34 * @param string|int $src_file The source file or Attachment ID 30 * @since 2.1.0 31 * 32 * @param string|int $src_file The source file or Attachment ID. 35 33 * @param int $src_x The start x position to crop from. 36 34 * @param int $src_y The start y position to crop from. … … 78 76 79 77 /** 80 * Generate post Image attachment Metadata. 81 * 82 * @internal Missing Long Description 83 * 84 * @since unknown 85 * 86 * @param int $attachment_id Attachment Id to process 87 * @param string $file Filepath of the Attached image 88 * @return mixed Metadata for attachment 78 * Generate post image attachment meta data. 79 * 80 * @since 2.1.0 81 * 82 * @param int $attachment_id Attachment Id to process. 83 * @param string $file Filepath of the Attached image. 84 * @return mixed Metadata for attachment. 89 85 */ 90 86 function wp_generate_attachment_metadata( $attachment_id, $file ) { … … 130 126 131 127 /** 132 * Load an image which PHP Supports. 133 * 134 * @internal Missing Long Description 135 * 136 * @since unknown 128 * Load an image from a string, if PHP supports it. 129 * 130 * @since 2.1.0 137 131 * 138 132 * @param string $file Filename of the image to load. … … 160 154 161 155 /** 162 * Calculated the new dimentions for downsampled images.163 * 164 * @since unknown156 * Calculated the new dimentions for a downsampled image. 157 * 158 * @since 2.0.0 165 159 * @see wp_shrink_dimensions() 166 160 * … … 168 162 * @param int $height Current height of the image 169 163 * @return mixed Array(height,width) of shrunk dimensions. 170 *171 164 */ 172 165 function get_udims( $width, $height) { … … 177 170 * Calculates the new dimentions for a downsampled image. 178 171 * 179 * @since unknown172 * @since 2.0.0 180 173 * @see wp_constrain_dimensions() 181 174 * … … 185 178 * @param int $hmax Maximum wanted height 186 179 * @return mixed Array(height,width) of shrunk dimensions. 187 *188 180 */ 189 181 function wp_shrink_dimensions( $width, $height, $wmax = 128, $hmax = 96 ) { … … 194 186 * Convert a fraction string to a decimal. 195 187 * 196 * @since unknown188 * @since 2.5.0 197 189 * 198 190 * @param string $str … … 209 201 * Convert the exif date format to a unix timestamp. 210 202 * 211 * @since unknown203 * @since 2.5.0 212 204 * 213 205 * @param string $str … … 224 216 * Get extended image metadata, exif or iptc as available. 225 217 * 226 * @since unknown 218 * Retrieves the EXIF metadata aperture, credit, camera, caption, copyright, iso 219 * created_timestamp, focal_length, shutter_speed, and title. 220 * 221 * The IPTC metadata that is retrieved is APP13, credit, byline, created date 222 * and time, caption, copyright, and title. Also includes FNumber, Model, 223 * DateTimeDigitized, FocalLength, ISOSpeedRatings, and ExposureTime. 224 * 225 * @todo Try other exif libraries if available. 226 * @since 2.5.0 227 227 * 228 228 * @param string $file … … 289 289 $meta['shutter_speed'] = wp_exif_frac2dec( $exif['ExposureTime'] ); 290 290 } 291 /** @todo FIXME: try other exif libraries if available */292 291 293 292 return apply_filters( 'wp_read_image_metadata', $meta, $file, $sourceImageType ); … … 298 297 * Validate that file is an image. 299 298 * 300 * @since unknown299 * @since 2.5.0 301 300 * 302 301 * @param string $path File path to test if valid image. … … 311 310 * Validate that file is suitable for displaying within a web page. 312 311 * 313 * @since unknown312 * @since 2.5.0 314 313 * @uses apply_filters() Calls 'file_is_displayable_image' on $result and $path. 315 314 *
Note: See TracChangeset
for help on using the changeset viewer.