mirror of
https://github.com/php/doc-es.git
synced 2026-03-24 07:22:16 +01:00
163 lines
4.5 KiB
XML
163 lines
4.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- EN-Revision: 9ba738103b63ee4f129dadf3f8585568609e63b7 Maintainer: PhilDaiguille Status: ready -->
|
|
<!-- Reviewed: yes -->
|
|
|
|
<chapter xml:id="image.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
&reftitle.setup;
|
|
|
|
<!-- {{{ Requirements -->
|
|
<section xml:id="image.requirements">
|
|
&reftitle.required;
|
|
<para>
|
|
Si se dispone de la biblioteca <acronym>GD</acronym> (disponible
|
|
en <link xlink:href="&url.gd;">&url.gd;</link>) también se podrán crear
|
|
y manipular imágenes.
|
|
</para>
|
|
<para>
|
|
Los formatos de imágenes que se podrán manipular dependen de la
|
|
versión de <acronym>GD</acronym> que se instale, y de todas
|
|
las demás bibliotecas que <acronym>GD</acronym> necesita para tratar
|
|
estas imágenes.
|
|
<note>
|
|
<simpara>
|
|
Se requiere libgd-2.1.0 o superior. Alternativamente,
|
|
utilice la biblioteca <acronym>GD</acronym> proporcionada con PHP.
|
|
</simpara>
|
|
</note>
|
|
<note>
|
|
<simpara>
|
|
La biblioteca <acronym>GD</acronym> requiere zlib >= 1.2.0.4.
|
|
</simpara>
|
|
</note>
|
|
</para>
|
|
<para>
|
|
También se puede mejorar <acronym>GD</acronym> añadiendo formatos
|
|
de imágenes adicionales.
|
|
<table>
|
|
<title>Formatos de imágenes soportados</title>
|
|
<tgroup cols="3">
|
|
<thead>
|
|
<row>
|
|
<entry>Formato de imagen</entry>
|
|
<entry>Biblioteca a descargar</entry>
|
|
<entry>Notas</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry><literal>gif</literal></entry>
|
|
<entry></entry>
|
|
<entry></entry>
|
|
</row>
|
|
<row>
|
|
<entry><literal>avif</literal></entry>
|
|
<entry></entry>
|
|
<entry></entry>
|
|
</row>
|
|
<row>
|
|
<entry><literal>jpeg</literal></entry>
|
|
<entry><link xlink:href="&url.jpeg;">&url.jpeg;</link></entry>
|
|
<entry>
|
|
Al compilar la biblioteca jpeg (antes de la de PHP),
|
|
debe utilizarse la opción de configuración <option role="configure">--enable-shared</option>.
|
|
De lo contrario, se recibirá un error indicando que
|
|
<literal>libjpeg.(a|so) not found</literal> al intentar configurar PHP
|
|
antes de compilarlo.
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry><literal>png</literal></entry>
|
|
<entry><link xlink:href="&url.libpng;">&url.libpng;</link></entry>
|
|
<entry>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry><literal>xpm</literal></entry>
|
|
<entry><link xlink:href="&url.libxpm;">&url.libxpm;</link></entry>
|
|
<entry>
|
|
Es probable que ya disponga de esta biblioteca si
|
|
su sistema tiene un entorno X.
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry><literal>webp</literal></entry>
|
|
<entry></entry>
|
|
<entry></entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
</para>
|
|
|
|
<para>
|
|
Puede querer extender <acronym>GD</acronym> para hacerla funcionar
|
|
con diferentes tipos de fuentes.
|
|
La biblioteca <link xlink:href="&url.freetype;">FreeType 2</link> es soportada.
|
|
</para>
|
|
</section>
|
|
<!-- }}} -->
|
|
|
|
<!-- {{{ Installation -->
|
|
&reference.image.configure;
|
|
<!-- }}} -->
|
|
|
|
<!-- {{{ Configuration -->
|
|
&reference.image.ini;
|
|
<!-- }}} -->
|
|
|
|
<!-- {{{ Resources -->
|
|
<section xml:id="image.resources">
|
|
&reftitle.resources;
|
|
<para>
|
|
Esta extensión define los siguientes tipos de recursos :
|
|
<table>
|
|
<title>Lista de recursos en GD</title>
|
|
<tgroup cols="3">
|
|
<thead>
|
|
<row>
|
|
<entry>Nombre</entry>
|
|
<entry>Descripción</entry>
|
|
<entry>Notas</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry><literal>gd</literal></entry>
|
|
<entry>Recurso de imagen, utilizado por funciones como <function>imagecreatefrompng</function></entry>
|
|
<entry>Anterior a PHP 8.0.0</entry>
|
|
</row>
|
|
<row>
|
|
<entry><literal>gd font</literal></entry>
|
|
<entry>Recurso de fuente creado internamente por <function>imageloadfont</function></entry>
|
|
<entry>Anterior a PHP 8.1.0</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
</para>
|
|
</section>
|
|
<!-- }}} -->
|
|
|
|
</chapter>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|