Source of: /manual/en/intro.image.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.image.inc";
$setup = array (
'home' =>
array (
0 => 'index.php',
1 => 'PHP Manual',
),
'head' =>
array (
0 => 'UTF-8',
1 => 'en',
),
'this' =>
array (
0 => 'intro.image.php',
1 => 'Introduction',
),
'up' =>
array (
0 => 'book.image.php',
1 => 'Image Processing and GD',
),
'prev' =>
array (
0 => 'book.image.php',
1 => 'GD',
),
'next' =>
array (
0 => 'image.setup.php',
1 => 'Installing/Configuring',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<div id="intro.image" class="preface">
<h1 class="title">Introduction</h1>
<p class="para">
PHP is not limited to creating just HTML output. It can also be
used to create and manipulate image files in a variety of different
image formats, including <acronym title="Graphic Interchange Format">GIF</acronym>, <acronym title="Portable Network Graphics">PNG</acronym>,
<acronym title="Joint Photographic Experts Group">JPEG</acronym>, <acronym title="Wireless Bitmap">WBMP</acronym>, and <acronym>XPM</acronym>.
Even more convenient, PHP can output image streams directly to a browser. You
will need to compile PHP with the <acronym title="Graphics Draw">GD</acronym> library of image
functions for this to work. <acronym title="Graphics Draw">GD</acronym> and PHP may also require
other libraries, depending on which image formats you want to work with.
</p>
<p class="para">
You can use the image functions in PHP to get the size of
<acronym title="Joint Photographic Experts Group">JPEG</acronym>, <acronym title="Graphic Interchange Format">GIF</acronym>,
<acronym title="Portable Network Graphics">PNG</acronym>, <acronym title="Shockwave Flash">SWF</acronym>,
<acronym title="Tagged Image File Format">TIFF</acronym> and <acronym>JPEG2000</acronym> images.
</p>
<p class="para">
With the <a href="ref.exif.php" class="link">exif extension</a>, you are able
to work with information stored in headers of
<acronym title="Joint Photographic Experts Group">JPEG</acronym> and <acronym title="Tagged Image File Format">TIFF</acronym> images. This way you can
read meta data generated by digital cameras. The exif
functions do not require the <acronym title="Graphics Draw">GD</acronym> library.
</p>
<p class="para">
</p><blockquote><p><b class="note">Note</b>:
<span class="simpara">
Read the requirements section about how to expand image capabilities
to read, write and modify images. To read meta data of pictures
taken by digital cameras you need the above mentioned
<a href="ref.exif.php" class="link">exif extension</a>.
</span>
</p></blockquote><p>
</p><blockquote><p><b class="note">Note</b>:
<span class="simpara">
The <a href="function.getimagesize.php" class="function">getimagesize()</a> function does not require the GD extension.
</span>
</p></blockquote><p>
</p>
</div><?php manual_footer(); ?>