mirror of
https://github.com/php/doc-es.git
synced 2026-03-26 08:22:08 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/es/trunk@330552 c90b9560-bf6c-de11-be94-00142212c4b1
155 lines
5.0 KiB
XML
155 lines
5.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 1634a886415d0ab4df195fe49d18a1c150b70758 Maintainer: seros Status: ready -->
|
|
<!-- Reviewed: yes Maintainer: seros -->
|
|
|
|
<book xml:id="book.image" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<?phpdoc extension-membership="bundled" ?>
|
|
<title>Procesamiento de imágenes y GD</title>
|
|
<titleabbrev>GD</titleabbrev>
|
|
|
|
<!-- {{{ preface -->
|
|
<preface xml:id="intro.image">
|
|
&reftitle.intro;
|
|
<para>
|
|
PHP no está limitado a crear únicamente salidas HTML. También se puede
|
|
usar para crear y manipular ficheros de imágenes en una variedad de diferentes
|
|
formatos de imagen, incluyendo <acronym>GIF</acronym>, <acronym>PNG</acronym>,
|
|
<acronym>JPEG</acronym>, <acronym>WBMP</acronym> y <acronym>XPM</acronym>.
|
|
Aún más práctico es que PHP puede transferir flujos de imagen directamente al navegador.
|
|
Necesitará compilar PHP con la biblioteca de funciones de imágenes <acronym>GD</acronym>
|
|
para que esto funcione. <acronym>GD</acronym> y PHP también pueden requierir
|
|
otras bibliotecas, dependiendo de los formatos de imagen con los que se quiera trabajar.
|
|
</para>
|
|
<para>
|
|
Se pueden usar las funciones de imagen de PHP para obtener el tamaño de imágenes
|
|
<acronym>JPEG</acronym>, <acronym>GIF</acronym>,
|
|
<acronym>PNG</acronym>, <acronym>SWF</acronym>,
|
|
<acronym>TIFF</acronym> y <acronym>JPEG2000</acronym>.
|
|
</para>
|
|
<para>
|
|
Con la <link linkend="ref.exif">extensión exif</link>, se puede
|
|
trabajar con infomación almacenada en cabeceras de
|
|
imágenes <acronym>JPEG</acronym> y <acronym>TIFF</acronym>. De esta manera se pueden
|
|
leer metadtaos generados por cámaras digitales. Las funciones de
|
|
exif no requieren la biblioteca <acronym>GD</acronym>.
|
|
</para>
|
|
|
|
<para>
|
|
<note>
|
|
<simpara>
|
|
Lea la sección de requisitos sobre cómo expandir las capacidades
|
|
para leer, escribir y modificar imágenes. Para leer metadatos de fotografías
|
|
tomadas con cámaras digitales se necesita la <link linkend="ref.exif">extensión exif</link>
|
|
mencionada arriba.
|
|
</simpara>
|
|
</note>
|
|
<note>
|
|
<simpara>
|
|
La función <function>getimagesize</function> no requiere la extensión GD.
|
|
</simpara>
|
|
</note>
|
|
</para>
|
|
|
|
<para>
|
|
GD admite variedad de formatos. Abajo se muestra una lista de los formatos soportados por GD y las observaciones
|
|
sobre su disponibilidad incluyendo el soporte para lectura/escritura.
|
|
</para>
|
|
<para>
|
|
<table>
|
|
<title>Formatos admitidos por GD</title>
|
|
<tgroup cols="4">
|
|
<thead>
|
|
<row>
|
|
<entry>Formato</entry>
|
|
<entry>Soporte para lectura</entry>
|
|
<entry>Soporte para escritura</entry>
|
|
<entry>Observaciones</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry>JPEG</entry>
|
|
<entry>&true;</entry>
|
|
<entry>&true;</entry>
|
|
<entry>GD 1.8+</entry>
|
|
</row>
|
|
<row>
|
|
<entry>PNG</entry>
|
|
<entry>&true;</entry>
|
|
<entry>&true;</entry>
|
|
<entry></entry>
|
|
</row>
|
|
<row>
|
|
<entry>GIF</entry>
|
|
<entry>&true;</entry>
|
|
<entry>&true;</entry>
|
|
<entry>No disponible entre GD 1.6 y GD 2.0.28</entry>
|
|
</row>
|
|
<row>
|
|
<entry>XBM</entry>
|
|
<entry>&true;</entry>
|
|
<entry>&true;</entry>
|
|
<entry>Soporte para lecutra a partir de PHP 4.0.1, y soporte para escritura a partir de PHP 5.0.0</entry>
|
|
</row>
|
|
<row>
|
|
<entry>XPM</entry>
|
|
<entry>&true;</entry>
|
|
<entry>&false;</entry>
|
|
<entry>Soporte para lectura a partir de PHP 4.0.1, no disponible en Windows. Requiere una versión interna de GD</entry>
|
|
</row>
|
|
<row>
|
|
<entry>WBMP</entry>
|
|
<entry>&true;</entry>
|
|
<entry>&true;</entry>
|
|
<entry>GD 1.8+</entry>
|
|
</row>
|
|
<row>
|
|
<entry>WebP</entry>
|
|
<entry>&true;</entry>
|
|
<entry>&true;</entry>
|
|
<entry>GD 2.1+, PHP 5.5+</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
</para>
|
|
<para>
|
|
A pesar de que la mayoría de los formatos están disponibles tanto para lectura como para escritura en la tabla de arriba,
|
|
esto no significa que PHP fuera compilado con soporta para ellos. Para averiguar qué formatos estaban disponibles
|
|
al compilar GD, use la función <function>gd_info</function>; para más información
|
|
sobre el soporte de compilación para uno o más formatos, véase el capítulo de instalación.
|
|
</para>
|
|
</preface>
|
|
|
|
<!-- }}} -->
|
|
|
|
&reference.image.setup;
|
|
&reference.image.constants;
|
|
&reference.image.examples;
|
|
&reference.image.reference;
|
|
|
|
</book>
|
|
|
|
<!-- 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
|
|
-->
|
|
|