Make WordPress Core

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#21481 closed defect (bug) (fixed)

Optimize image_resize to prevent re-opening image every time

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


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)

#1 @bpetty
12 years ago

  • Cc bpetty added

#2 @markoheijnen
12 years ago

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

#3 @nacin
12 years ago

  • Milestone changed from Awaiting Review to 3.5

#4 @bpetty
12 years 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.

#5 @kurtpayne
12 years ago

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

Fixed in #6821.

#6 @bpetty
12 years ago

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