<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = 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 => 'uk',
  ),
  'this' => 
  array (
    0 => 'intro.image.php',
    1 => 'Вступ',
    2 => 'Вступ',
  ),
  'up' => 
  array (
    0 => 'book.image.php',
    1 => 'GD',
  ),
  'prev' => 
  array (
    0 => 'book.image.php',
    1 => 'GD',
  ),
  'next' => 
  array (
    0 => 'image.setup.php',
    1 => 'Встановлення/налаштування',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/image/book.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="intro.image" class="preface">
  <h1 class="title">Вступ</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 <abbr title="Graphic Interchange Format">GIF</abbr>, <abbr title="Portable Network Graphics">PNG</abbr>,
   <abbr title="Joint Photographic Experts Group">JPEG</abbr>, <abbr title="Wireless Bitmap">WBMP</abbr>, and <abbr>XPM</abbr>.
   Even more conveniently, PHP can output image streams directly to a browser. You
   will need to compile PHP with the <abbr title="Graphics Draw">GD</abbr> library of image
   functions for this to work. <abbr title="Graphics Draw">GD</abbr> 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
   <abbr title="Joint Photographic Experts Group">JPEG</abbr>, <abbr title="Graphic Interchange Format">GIF</abbr>,
   <abbr title="Portable Network Graphics">PNG</abbr>, <abbr title="Shockwave Flash">SWF</abbr>,
   <abbr title="Tagged Image File Format">TIFF</abbr> and <abbr>JPEG2000</abbr> 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
   <abbr title="Joint Photographic Experts Group">JPEG</abbr> and <abbr title="Tagged Image File Format">TIFF</abbr> images. This way you can
   read meta data generated by digital cameras. The exif
   functions do not require the <abbr title="Graphics Draw">GD</abbr> library.
  </p>
  
  <p class="para">
   <blockquote class="note"><p><strong class="note">Зауваження</strong>: 
    <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>
   <blockquote class="note"><p><strong class="note">Зауваження</strong>: 
    <span class="simpara">
      The <span class="function"><a href="function.getimagesize.php" class="function">getimagesize()</a></span> function does not require the GD extension.
    </span>
   </p></blockquote>
   <div class="caution"><strong class="caution">Застереження</strong>
    <p class="simpara">
     While the bundled version of the GD library uses the Zend memory manager to
     allocate memory, system versions do not, so that <a href="ini.core.php#ini.memory-limit" class="link">memory_limit</a> does not apply. 
    </p>
   </div>
  </p>

  <p class="para">
   GD supports a varity of formats, below is a list of formats supported by GD and notes 
   to their availability including read/write support.
  </p>
  <p class="para">
   <table class="doctable table">
    <caption><strong>Formats supported by GD</strong></caption>
    
     <thead>
      <tr>
       <th>Format</th>
       <th>Read support</th>
       <th>Write support</th>
       <th>Notes</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>JPEG</td>
       <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
       <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
       <td class="empty">&nbsp;</td>
      </tr>

      <tr>
       <td>PNG</td>
       <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
       <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
       <td class="empty">&nbsp;</td>
      </tr>

      <tr>
       <td>GIF</td>
       <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
       <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
       <td class="empty">&nbsp;</td>
      </tr>

      <tr>
       <td>XBM</td>
       <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
       <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
       <td class="empty">&nbsp;</td>
      </tr>

      <tr>
       <td>XPM</td>
       <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
       <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
       <td class="empty">&nbsp;</td>
      </tr>

      <tr>
       <td>WBMP</td>
       <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
       <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
       <td class="empty">&nbsp;</td>
      </tr>

      <tr>
       <td>WebP</td>
       <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
       <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
       <td class="empty">&nbsp;</td>
      </tr>

      <tr>
       <td>BMP</td>
       <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
       <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
       <td>Available as of PHP 7.2.0</td>
      </tr>

     </tbody>
    
   </table>

  </p>
  <p class="para">
   Despite most formats being available for both reading and writing in the above table, doesn&#039;t 
   mean that PHP was compiled with support for them. To find out which formats that was available 
   to GD during compilation, use the <span class="function"><a href="function.gd-info.php" class="function">gd_info()</a></span> function, for more information 
   about compiling support for one or more formats, see the installation chapter.
  </p>
 </div><?php manual_footer($setup); ?>