Opened 10 months ago

Closed 7 months ago

Last modified 7 months ago

#21481 closed defect (bug) (fixed)

Optimize image_resize to prevent re-opening image every time

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

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)

  • Cc bpetty added

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

  • Milestone changed from Awaiting Review to 3.5
  • 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.

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

Fixed in #6821.

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