Ticket #6005 (closed enhancement: fixed)

Opened 4 months ago

Last modified 4 months ago

image_resize() function

Reported by: tellyworth Assigned to: anonymous
Priority: normal Milestone: 2.5
Component: General Version:
Severity: normal Keywords: has-patch
Cc:

Description

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 http://svn.automattic.com/wordpress-tests/wp-testcase/test_image.php, particularly TestImageResizeDimensions? and TestImageResize?.

Attachments

image-resize-r7030.patch (6.3 kB) - added by tellyworth on 02/26/08 13:09:29.

Change History

02/26/08 13:09:29 changed by tellyworth

  • attachment image-resize-r7030.patch added.

02/26/08 18:46:03 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

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