image.setup.html

来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 188 行

HTML
188
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Installing/Configuring</title>  <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="intro.image.html">Introduction</a></div> <div class="next" style="text-align: right; float: right;"><a href="image.installation.html">Installation</a></div> <div class="up"><a href="book.image.html">GD</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div> <h1>Installing/Configuring</h1><h2>Table of Contents</h2><ul class="chunklist chunklist_chapter"><li><a href="image.installation.html">Installation</a></li><li><a href="image.configuration.html">Runtime Configuration</a></li><li><a href="image.resources.html">Resource Types</a></li></ul>  <div id="image.requirements" class="section">  <h2 class="title">Requirements</h2>  <p class="para">   If you have the <acronym title="Graphics Draw">GD</acronym> library (available at <a href="http://www.libgd.org/" class="link external">&raquo; http://www.libgd.org/</a>) you will also be able to create   and manipulate images.  </p>  <p class="para">   The format of images you are able to manipulate depend on the   version of <acronym title="Graphics Draw">GD</acronym> you install, and any other libraries   <acronym title="Graphics Draw">GD</acronym> might need to access those image formats.   Versions of <acronym title="Graphics Draw">GD</acronym> older than gd-1.6   support GIF format images, and do not support PNG, where versions   greater than gd-1.6 and less than gd-2.0.28 support PNG, not GIF. GIF   support was re-enabled in gd-2.0.28.   <blockquote><p><b class="note">Note</b>:     <span class="simpara">     Since PHP 4.3 there is a bundled version of the GD lib. This bundled     version has some additional features like alpha blending, and should     be used in preference to the external library     since its codebase is better maintained and more stable.    </span>   </p></blockquote>  </p>  <blockquote><p><b class="note">Note</b>:        Support for GD 1.x has been removed as of PHP 6.0.0, which requires GD    2.0.33 or later.   <br />  </p></blockquote>  <p class="para">   You may wish to enhance GD to handle more image formats.   <table border="5">   <caption><b>Supported image formats</b></caption>    <colgroup>     <thead valign="middle">      <tr valign="middle">       <th colspan="1">Image format</th>       <th colspan="1">Library to download</th>       <th colspan="1">Notes</th>      </tr>     </thead>     <tbody valign="middle" class="tbody">      <tr valign="middle">       <td colspan="1" rowspan="1" align="left"><i>gif</i></td>       <td class="empty">&nbsp;</td>       <td colspan="1" rowspan="1" align="left">        Only supported in GD versions older than gd-1.6 and newer than        gd-2.0.28. <em class="emphasis">Read-only        </em> GIF support is available with PHP 4.3.0 and the bundled        GD-library. <em class="emphasis">Write</em> support is available since        PHP 4.3.9 and PHP 5.0.1.       </td>      </tr>      <tr valign="middle">       <td colspan="1" rowspan="1" align="left"><i>jpeg-6b</i></td>       <td colspan="1" rowspan="1" align="left"><a href="ftp://ftp.uu.net/graphics/jpeg/" class="link external">&raquo; ftp://ftp.uu.net/graphics/jpeg/</a></td>       <td colspan="1" rowspan="1" align="left">        When buliding the jpeg-v6b library (prior to building PHP) you        must use the <span class="option">--enable-shared</span>        option in the configure step.  If you do not, you will receive        an error saying <i>libjpeg.(a|so) not found</i>        when you get to the configure step of building PHP.       </td>      </tr>      <tr valign="middle">       <td colspan="1" rowspan="1" align="left"><i>png</i></td>       <td colspan="1" rowspan="1" align="left"><a href="http://www.libpng.org/pub/png/libpng.html" class="link external">&raquo; http://www.libpng.org/pub/png/libpng.html</a></td>       <td colspan="1" rowspan="1" align="left">        Only supported in GD versions greater than gd-1.6.       </td>      </tr>      <tr valign="middle">       <td colspan="1" rowspan="1" align="left"><i>xpm</i></td>       <td colspan="1" rowspan="1" align="left"><a href="ftp://metalab.unc.edu/pub/Linux/libs/X/!INDEX.html" class="link external">&raquo; ftp://metalab.unc.edu/pub/Linux/libs/X/!INDEX.html</a></td>       <td colspan="1" rowspan="1" align="left">        It&#039;s likely you have this library already available, if your system        has an installed X-Environment.       </td>      </tr>     </tbody>    </colgroup>   </table>  </p>  <p class="para">   You may wish to enhance GD to deal with different fonts. The following   font libraries are supported:   <table border="5">   <caption><b>Supported font libraries</b></caption>    <colgroup>     <thead valign="middle">      <tr valign="middle">       <th colspan="1">Font library</th>       <th colspan="1">Download</th>       <th colspan="1">Notes</th>      </tr>     </thead>     <tbody valign="middle" class="tbody">      <tr valign="middle">       <td colspan="1" rowspan="1" align="left"><i>FreeType 1.x</i></td>       <td colspan="1" rowspan="1" align="left"><a href="http://www.freetype.org/" class="link external">&raquo; http://www.freetype.org/</a></td>       <td colspan="1" rowspan="1" align="left">Support removed as of PHP 6.0.0</td>      </tr>      <tr valign="middle">       <td colspan="1" rowspan="1" align="left"><i>FreeType 2</i></td>       <td colspan="1" rowspan="1" align="left"><a href="http://www.freetype.org/" class="link external">&raquo; http://www.freetype.org/</a></td>       <td class="empty">&nbsp;</td>      </tr>      <tr valign="middle">       <td colspan="1" rowspan="1" align="left"><i>T1lib</i></td>       <td colspan="1" rowspan="1" align="left"><a href="ftp://sunsite.unc.edu/pub/Linux/libs/graphics/" class="link external">&raquo; ftp://sunsite.unc.edu/pub/Linux/libs/graphics/</a>)</td>       <td colspan="1" rowspan="1" align="left">        Support for Postscript Type 1 fonts.       </td>      </tr>     </tbody>    </colgroup>   </table>  </p> </div>          </div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="intro.image.html">Introduction</a></div> <div class="next" style="text-align: right; float: right;"><a href="image.installation.html">Installation</a></div> <div class="up"><a href="book.image.html">GD</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?