[wp-trac] [WordPress Trac] #53022: List the supported file types for the active image editor
WordPress Trac
noreply at wordpress.org
Sat Jun 12 02:34:36 UTC 2021
#53022: List the supported file types for the active image editor
------------------------------------------+-----------------------
Reporter: desrosj | Owner: desrosj
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 5.8
Component: Site Health | Version:
Severity: normal | Resolution:
Keywords: has-patch commit needs-codex | Focuses:
------------------------------------------+-----------------------
Changes (by adamsilverstein):
* status: closed => reopened
* resolution: fixed =>
Comment:
@desrosj in [attachment:"53022.4.diff"] I added support for GD image
detection. Since gd_info data looks like this:
{{{
{
"GD Version": "bundled (2.1.0 compatible)",
"FreeType Support": true,
"FreeType Linkage": "with freetype",
"GIF Read Support": true,
"GIF Create Support": true,
"JPEG Support": true,
"PNG Support": true,
"WBMP Support": true,
"XPM Support": false,
...
}
}}}
the code iterates through known formats, looking for matching array
variables set to true. I also clean up the GIF image support string a bit
and skip formats we don't need/use like "FreeType".
We'll need to keep this updated as new formats are added.
Reopening for consideration for 5.8, fine with 5.9 as well.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53022#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list