PHP Cross Reference of WordPress Subversion HEAD

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]

title

Body

[close]

/wp-admin/includes/ -> image.php (summary)

File contains all the administration image manipulation functions.

File Size: 311 lines (11 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 9 functions

  wp_create_thumbnail()
  wp_crop_image()
  wp_generate_attachment_metadata()
  wp_load_image()
  get_udims()
  wp_shrink_dimensions()
  wp_exif_frac2dec()
  wp_exif_date2ts()
  wp_read_image_metadata()

Functions
Functions that are not part of a class:

wp_create_thumbnail( $file, $max_side, $deprecated = '' )   X-Ref
wp_create_thumbnail() - Create a thumbnail from an Image given a maximum side size.

param: mixed    $file    Filename of the original image, Or attachment id
param: int        $max_side    Maximum length of a single side for the thumbnail
return: string            Thumbnail path on success, Error string on failure

wp_crop_image( $src_file, $src_x, $src_y, $src_w, $src_h, $dst_w, $dst_h, $src_abs = false, $dst_file = false )   X-Ref
wp_crop_image() - Crop an Image to a given size.

param: int    $src_file    The source file
param: int    $src_x        The start x position to crop from
param: int    $src_y        The start y position to crop from
param: int    $src_w        The width to crop
param: int    $src_h        The height to crop
param: int    $dst_w        The destination width
param: int    $dst_h        The destination height
param: int    $src_abs    If the source crop points are absolute
param: int    $dst_file    The destination file to write to
return: string            New filepath on success, String error message on failure

wp_generate_attachment_metadata( $attachment_id, $file )   X-Ref
wp_generate_attachment_metadata() - Generate post Image attachment Metadata

param: int        $attachment_id    Attachment Id to process
param: string    $file    Filepath of the Attached image
return: mixed            Metadata for attachment

wp_load_image( $file )   X-Ref
wp_load_image() - Load an image which PHP Supports.

param: string    $file    Filename of the image to load
return: resource        The resulting image resource on success, Error string on failure.

get_udims( $width, $height)   X-Ref
get_udims() - Calculated the new dimentions for downsampled images

param: int        $width    Current width of the image
param: int     $height    Current height of the image
return: mixed            Array(height,width) of shrunk dimensions.

wp_shrink_dimensions( $width, $height, $wmax = 128, $hmax = 96 )   X-Ref
wp_shrink_dimensions() - Calculates the new dimentions for a downsampled image.

param: int        $width    Current width of the image
param: int     $height    Current height of the image
param: int        $wmax    Maximum wanted width
param: int        $hmax    Maximum wanted height
return: mixed            Array(height,width) of shrunk dimensions.

wp_exif_frac2dec($str)   X-Ref
No description

wp_exif_date2ts($str)   X-Ref
No description

wp_read_image_metadata( $file )   X-Ref
No description



Generated Thu Dec 6 06:47:08 2007 for RedAlt XRefs Cross-referenced by PHPXref 0.6 and RedAlt