[wp-trac] [WordPress Trac] #52569: Don't let PHP timeout in the middle of an ImageMagick operation
WordPress Trac
noreply at wordpress.org
Wed Feb 22 14:24:05 UTC 2023
#52569: Don't let PHP timeout in the middle of an ImageMagick operation
--------------------------+---------------------
Reporter: drzraf | Owner: antpb
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.2
Component: Media | Version: 5.6.1
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
--------------------------+---------------------
Changes (by SergeyBiryukov):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"55404" 55404]:
{{{
#!CommitTicketReference repository="" revision="55404"
Media: Add `WP_Image_Editor_Imagick::set_imagick_time_limit()` method.
This aims to avoid timeout in Imagick operations.
Previously, Imagick operations could silently error by timeout and produce
unexpected results. The new `::set_imagick_time_limit()` method, now used
in `::resize()` and `::crop()`, will better handle garbage collection in
these cases as well as better align Imagick's timeout with PHP timeout,
assuming it is set.
Props drzraf, audrasjb, costdev, antpb, SergeyBiryukov.
Fixes #52569.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52569#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list