Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#6005 closed enhancement (fixed)

image_resize() function

Reported by: tellyworth's profile tellyworth Owned by:
Milestone: 2.5 Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch
Focuses: Cc:


This adds a new image_resize() function, plus ancillary functions in wp-includes/media.php.

image_resize() resembles wp_create_thumbnail() and wp_crop_image(). It's more general than wp_create_thumbnail(), and supports a cropping mode for square thumbnails.

The new function isn't called anywhere yet but it's unit tested. More patches to come will hook it up to thumbnail generation and other stuff.

Unit tests are in, particularly TestImageResizeDimensions and TestImageResize.

Attachments (1)

image-resize-r7030.patch (6.3 KB) - added by tellyworth 16 years ago.

Download all attachments as: .zip

Change History (2)

#1 @ryan
16 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [7041]) image_resize() and friends from tellyworth. fixes #6005

Note: See TracTickets for help on using tickets.