[wp-trac] [WordPress Trac] #42663: Imagick support for stream wrappers
WordPress Trac
noreply at wordpress.org
Tue Oct 20 14:35:25 UTC 2020
#42663: Imagick support for stream wrappers
----------------------------------------+---------------------------
Reporter: calin | Owner: mikeschroder
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.6
Component: Media | Version:
Severity: normal | Resolution: fixed
Keywords: has-unit-tests needs-patch | Focuses:
----------------------------------------+---------------------------
Changes (by mikeschroder):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"49230" 49230]:
{{{
#!CommitTicketReference repository="" revision="49230"
Media: Support Stream Wrappers In `WP_Image_Editor_Imagick`
Since `WP_Image_Editor`'s introduction, stream wrappers have functioned in
`WP_Image_Editor_GD`, but haven't been properly supported in
`WP_Image_Editor_Imagick`.
- Detects stream wrappers and uses `file_put_contents()` along with
`Imagick::read/getImageBlob()` for handling when necessary.
- Introduces private method, `WP_Image_Editor_Imagick::write_image` to
handle detection and proper saving.
- Introduces `WP_Test_Stream` class for testing stream wrappers, along
with new tests for Imagick's stream handling and a stream filename test.
Adds requirement for `Imagick::readImageBlob()`, available in Imagick >=
2.0.0, which aligns with the current requirement of Imagick >= 2.2.0.
Props p00ya, calin, joemcgill, pputzer, jimyaghi, mikeschroder.
Fixes #42663.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42663#comment:35>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list