WordPress.org

Make WordPress Core

Opened 21 months ago

Closed 18 months ago

Last modified 18 months ago

#21481 closed defect (bug) (fixed)

Optimize image_resize to prevent re-opening image every time

Reported by: kurtpayne Owned by:
Milestone: 3.5 Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:

Description

Found during discussion at WCSF:

image_resize() calls wp_load_image() which opens the image and loads it into memory. This can be optimized because image_resize() is called several times times.

Change History (6)

comment:1 bpetty21 months ago

  • Cc bpetty added

comment:2 markoheijnen21 months ago

related to this ticket is all the work done in #6821

comment:3 nacin21 months ago

  • Milestone changed from Awaiting Review to 3.5

comment:4 bpetty18 months ago

  • Keywords close added

I believe now that #6821 has been applied, this ticket can be closed.

Both image_resize() and wp_load_image() are now deprecated, and WP_Image_Editor::resize() makes use of a previously loaded image resource in both GD and ImageMagick implementations.

comment:5 kurtpayne18 months ago

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

Fixed in #6821.

comment:6 bpetty18 months ago

  • Keywords close removed
Note: See TracTickets for help on using tickets.