Page MenuHomeDevCentral

Enable Freetype, Webp and XPM support in GD
ClosedPublic

Authored by dereckson on Nov 13 2018, 15:37.

Details

Summary

Required by Pixelfed

Ref T1481

Test Plan

Call the following functions:

  • imagefttext()
  • imagecreatefromxpm()
  • imagewebp()

Diff Detail

Repository
rDPHPVIIFPM Docker image to install nginx, PHP 7 and fpm
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

dereckson requested review of this revision.Nov 13 2018, 15:37
dereckson created this revision.
dereckson added a comment.EditedNov 13 2018, 18:53

imagefttext() and imagecreatefromxpm() ok

imagewebp() still undefined

It seems XPM and WebP are two different formats.

>>> gd_info()
=> [
     "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" => true,
     "XBM Support" => true,
     "WebP Support" => false,
     "BMP Support" => true,
     "JIS-mapped Japanese Font Support" => false,
   ]

Per http://svn.php.net/viewvc/phpdoc/en/trunk/reference/image/configure.xml?view=markup&pathrev=339664 library has been changed: instead to use libvpx has been superseded by libwebp.

dereckson updated this revision to Diff 5096.Nov 13 2018, 19:02

Fix indent. vpx → webp

dereckson accepted this revision.Nov 13 2018, 19:21
This revision is now accepted and ready to land.Nov 13 2018, 19:21
This revision was automatically updated to reflect the committed changes.