CINXE.COM

PHP: imageinterlace - Manual

<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>PHP: imageinterlace - Manual </title> <link rel="icon" type="image/svg+xml" sizes="any" href="https://www.php.net/favicon.svg?v=2"> <link rel="icon" type="image/png" sizes="196x196" href="https://www.php.net/favicon-196x196.png?v=2"> <link rel="icon" type="image/png" sizes="32x32" href="https://www.php.net/favicon-32x32.png?v=2"> <link rel="icon" type="image/png" sizes="16x16" href="https://www.php.net/favicon-16x16.png?v=2"> <link rel="shortcut icon" href="https://www.php.net/favicon.ico?v=2"> <link rel="search" type="application/opensearchdescription+xml" href="http://php.net/phpnetimprovedsearch.src" title="Add PHP.net search"> <link rel="alternate" type="application/atom+xml" href="https://www.php.net/releases/feed.php" title="PHP Release feed"> <link rel="alternate" type="application/atom+xml" href="https://www.php.net/feed.atom" title="PHP: Hypertext Preprocessor"> <link rel="canonical" href="https://www.php.net/manual/en/function.imageinterlace.php"> <link rel="shorturl" href="https://www.php.net/imageinterlace"> <link rel="alternate" href="https://www.php.net/imageinterlace" hreflang="x-default"> <link rel="contents" href="https://www.php.net/manual/en/index.php"> <link rel="index" href="https://www.php.net/manual/en/ref.image.php"> <link rel="prev" href="https://www.php.net/manual/en/function.imagegrabwindow.php"> <link rel="next" href="https://www.php.net/manual/en/function.imageistruecolor.php"> <link rel="alternate" href="https://www.php.net/manual/en/function.imageinterlace.php" hreflang="en"> <link rel="alternate" href="https://www.php.net/manual/de/function.imageinterlace.php" hreflang="de"> <link rel="alternate" href="https://www.php.net/manual/es/function.imageinterlace.php" hreflang="es"> <link rel="alternate" href="https://www.php.net/manual/fr/function.imageinterlace.php" hreflang="fr"> <link rel="alternate" href="https://www.php.net/manual/it/function.imageinterlace.php" hreflang="it"> <link rel="alternate" href="https://www.php.net/manual/ja/function.imageinterlace.php" hreflang="ja"> <link rel="alternate" href="https://www.php.net/manual/pt_BR/function.imageinterlace.php" hreflang="pt_BR"> <link rel="alternate" href="https://www.php.net/manual/ru/function.imageinterlace.php" hreflang="ru"> <link rel="alternate" href="https://www.php.net/manual/tr/function.imageinterlace.php" hreflang="tr"> <link rel="alternate" href="https://www.php.net/manual/uk/function.imageinterlace.php" hreflang="uk"> <link rel="alternate" href="https://www.php.net/manual/zh/function.imageinterlace.php" hreflang="zh"> <link rel="stylesheet" type="text/css" href="/cached.php?t=1707321815&amp;f=/fonts/Fira/fira.css" media="screen"> <link rel="stylesheet" type="text/css" href="/cached.php?t=1707321815&amp;f=/fonts/Font-Awesome/css/fontello.css" media="screen"> <link rel="stylesheet" type="text/css" href="/cached.php?t=1738926002&amp;f=/styles/theme-base.css" media="screen"> <link rel="stylesheet" type="text/css" href="/cached.php?t=1730558402&amp;f=/styles/theme-medium.css" media="screen"> <base href="https://www.php.net/manual/en/function.imageinterlace.php"> <meta name="Description" content="PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world." /> <meta name="twitter:card" content="summary_large_image" /> <meta name="twitter:site" content="@official_php" /> <meta name="twitter:title" content="PHP: Hypertext Preprocessor" /> <meta name="twitter:description" content="PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world." /> <meta name="twitter:creator" content="@official_php" /> <meta name="twitter:image:src" content="https://www.php.net/images/meta-image.png" /> <meta itemprop="name" content="PHP: Hypertext Preprocessor" /> <meta itemprop="description" content="PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world." /> <meta itemprop="image" content="https://www.php.net/images/meta-image.png" /> <meta property="og:image" content="https://www.php.net/images/meta-image.png" /> <meta property="og:description" content="PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world." /> <link href="https://fosstodon.org/@php" rel="me" /> <!-- Matomo --> <script> var _paq = window._paq = window._paq || []; /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(["setDoNotTrack", true]); _paq.push(["disableCookies"]); _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u="https://analytics.php.net/"; _paq.push(['setTrackerUrl', u+'matomo.php']); _paq.push(['setSiteId', '1']); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); })(); </script> <!-- End Matomo Code --> </head> <body class="docs "> <nav class="navbar navbar-fixed-top"> <div class="navbar__inner"> <a href="/" aria-label="PHP Home" class="navbar__brand"> <img src="/images/logos/php-logo-white.svg" aria-hidden="true" width="80" height="40" > </a> <div id="navbar__offcanvas" tabindex="-1" class="navbar__offcanvas" aria-label="Menu" > <button id="navbar__close-button" class="navbar__icon-item navbar_icon-item--visually-aligned navbar__close-button" > <svg xmlns="http://www.w3.org/2000/svg" width="24" viewBox="0 0 24 24" fill="currentColor"><path d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z" /></svg> </button> <ul class="navbar__nav"> <li class="navbar__item"> <a href="/downloads.php" class="navbar__link " > Downloads </a> </li> <li class="navbar__item"> <a href="/docs.php" aria-current="page" class="navbar__link navbar__link--active " > Documentation </a> </li> <li class="navbar__item"> <a href="/get-involved.php" class="navbar__link " > Get Involved </a> </li> <li class="navbar__item"> <a href="/support.php" class="navbar__link " > Help </a> </li> <li class="navbar__item"> <a href="/releases/8.4/index.php" class="navbar__link navbar__release" > <img src="/images/php8/logo_php8_4.svg" alt="PHP 8.4"> </a> </li> </ul> </div> <div class="navbar__right"> <!-- Desktop default search --> <form action="/manual-lookup.php" class="navbar__search-form" > <label for="navbar__search-input" aria-label="Search docs"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <circle cx="11" cy="11" r="8"></circle> <line x1="21" y1="21" x2="16.65" y2="16.65"></line> </svg> </label> <input type="search" name="pattern" id="navbar__search-input" class="navbar__search-input" placeholder="Search docs" accesskey="s" > <input type="hidden" name="scope" value="quickref"> </form> <!-- Desktop encanced search --> <button id="navbar__search-button" class="navbar__search-button" hidden > <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <circle cx="11" cy="11" r="8"></circle> <line x1="21" y1="21" x2="16.65" y2="16.65"></line> </svg> Search docs </button> <!-- Mobile default items --> <a id="navbar__search-link" href="/lookup-form.php" aria-label="Search docs" class="navbar__icon-item navbar__search-link" > <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <circle cx="11" cy="11" r="8"></circle> <line x1="21" y1="21" x2="16.65" y2="16.65"></line> </svg> </a> <a id="navbar__menu-link" href="/menu.php" aria-label="Menu" class="navbar__icon-item navbar_icon-item--visually-aligned navbar_menu-link" > <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="24" viewBox="0 0 24 24" fill="currentColor" > <path d="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z" /> </svg> </a> <!-- Mobile enhanced items --> <button id="navbar__search-button-mobile" aria-label="Search docs" class="navbar__icon-item navbar__search-button-mobile" hidden > <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <circle cx="11" cy="11" r="8"></circle> <line x1="21" y1="21" x2="16.65" y2="16.65"></line> </svg> </button> <button id="navbar__menu-button" aria-label="Menu" class="navbar__icon-item navbar_icon-item--visually-aligned" hidden > <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="24" viewBox="0 0 24 24" fill="currentColor" > <path d="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z" /> </svg> </button> </div> <div id="navbar__backdrop" class="navbar__backdrop" ></div> </div> <div id="flash-message"></div> </nav> <nav id="trick"><div><dl> <dt><a href='/manual/en/getting-started.php'>Getting Started</a></dt> <dd><a href='/manual/en/introduction.php'>Introduction</a></dd> <dd><a href='/manual/en/tutorial.php'>A simple tutorial</a></dd> <dt><a href='/manual/en/langref.php'>Language Reference</a></dt> <dd><a href='/manual/en/language.basic-syntax.php'>Basic syntax</a></dd> <dd><a href='/manual/en/language.types.php'>Types</a></dd> <dd><a href='/manual/en/language.variables.php'>Variables</a></dd> <dd><a href='/manual/en/language.constants.php'>Constants</a></dd> <dd><a href='/manual/en/language.expressions.php'>Expressions</a></dd> <dd><a href='/manual/en/language.operators.php'>Operators</a></dd> <dd><a href='/manual/en/language.control-structures.php'>Control Structures</a></dd> <dd><a href='/manual/en/language.functions.php'>Functions</a></dd> <dd><a href='/manual/en/language.oop5.php'>Classes and Objects</a></dd> <dd><a href='/manual/en/language.namespaces.php'>Namespaces</a></dd> <dd><a href='/manual/en/language.enumerations.php'>Enumerations</a></dd> <dd><a href='/manual/en/language.errors.php'>Errors</a></dd> <dd><a href='/manual/en/language.exceptions.php'>Exceptions</a></dd> <dd><a href='/manual/en/language.fibers.php'>Fibers</a></dd> <dd><a href='/manual/en/language.generators.php'>Generators</a></dd> <dd><a href='/manual/en/language.attributes.php'>Attributes</a></dd> <dd><a href='/manual/en/language.references.php'>References Explained</a></dd> <dd><a href='/manual/en/reserved.variables.php'>Predefined Variables</a></dd> <dd><a href='/manual/en/reserved.exceptions.php'>Predefined Exceptions</a></dd> <dd><a href='/manual/en/reserved.interfaces.php'>Predefined Interfaces and Classes</a></dd> <dd><a href='/manual/en/reserved.attributes.php'>Predefined Attributes</a></dd> <dd><a href='/manual/en/context.php'>Context options and parameters</a></dd> <dd><a href='/manual/en/wrappers.php'>Supported Protocols and Wrappers</a></dd> </dl> <dl> <dt><a href='/manual/en/security.php'>Security</a></dt> <dd><a href='/manual/en/security.intro.php'>Introduction</a></dd> <dd><a href='/manual/en/security.general.php'>General considerations</a></dd> <dd><a href='/manual/en/security.cgi-bin.php'>Installed as CGI binary</a></dd> <dd><a href='/manual/en/security.apache.php'>Installed as an Apache module</a></dd> <dd><a href='/manual/en/security.sessions.php'>Session Security</a></dd> <dd><a href='/manual/en/security.filesystem.php'>Filesystem Security</a></dd> <dd><a href='/manual/en/security.database.php'>Database Security</a></dd> <dd><a href='/manual/en/security.errors.php'>Error Reporting</a></dd> <dd><a href='/manual/en/security.variables.php'>User Submitted Data</a></dd> <dd><a href='/manual/en/security.hiding.php'>Hiding PHP</a></dd> <dd><a href='/manual/en/security.current.php'>Keeping Current</a></dd> <dt><a href='/manual/en/features.php'>Features</a></dt> <dd><a href='/manual/en/features.http-auth.php'>HTTP authentication with PHP</a></dd> <dd><a href='/manual/en/features.cookies.php'>Cookies</a></dd> <dd><a href='/manual/en/features.sessions.php'>Sessions</a></dd> <dd><a href='/manual/en/features.file-upload.php'>Handling file uploads</a></dd> <dd><a href='/manual/en/features.remote-files.php'>Using remote files</a></dd> <dd><a href='/manual/en/features.connection-handling.php'>Connection handling</a></dd> <dd><a href='/manual/en/features.persistent-connections.php'>Persistent Database Connections</a></dd> <dd><a href='/manual/en/features.commandline.php'>Command line usage</a></dd> <dd><a href='/manual/en/features.gc.php'>Garbage Collection</a></dd> <dd><a href='/manual/en/features.dtrace.php'>DTrace Dynamic Tracing</a></dd> </dl> <dl> <dt><a href='/manual/en/funcref.php'>Function Reference</a></dt> <dd><a href='/manual/en/refs.basic.php.php'>Affecting PHP's Behaviour</a></dd> <dd><a href='/manual/en/refs.utilspec.audio.php'>Audio Formats Manipulation</a></dd> <dd><a href='/manual/en/refs.remote.auth.php'>Authentication Services</a></dd> <dd><a href='/manual/en/refs.utilspec.cmdline.php'>Command Line Specific Extensions</a></dd> <dd><a href='/manual/en/refs.compression.php'>Compression and Archive Extensions</a></dd> <dd><a href='/manual/en/refs.crypto.php'>Cryptography Extensions</a></dd> <dd><a href='/manual/en/refs.database.php'>Database Extensions</a></dd> <dd><a href='/manual/en/refs.calendar.php'>Date and Time Related Extensions</a></dd> <dd><a href='/manual/en/refs.fileprocess.file.php'>File System Related Extensions</a></dd> <dd><a href='/manual/en/refs.international.php'>Human Language and Character Encoding Support</a></dd> <dd><a href='/manual/en/refs.utilspec.image.php'>Image Processing and Generation</a></dd> <dd><a href='/manual/en/refs.remote.mail.php'>Mail Related Extensions</a></dd> <dd><a href='/manual/en/refs.math.php'>Mathematical Extensions</a></dd> <dd><a href='/manual/en/refs.utilspec.nontext.php'>Non-Text MIME Output</a></dd> <dd><a href='/manual/en/refs.fileprocess.process.php'>Process Control Extensions</a></dd> <dd><a href='/manual/en/refs.basic.other.php'>Other Basic Extensions</a></dd> <dd><a href='/manual/en/refs.remote.other.php'>Other Services</a></dd> <dd><a href='/manual/en/refs.search.php'>Search Engine Extensions</a></dd> <dd><a href='/manual/en/refs.utilspec.server.php'>Server Specific Extensions</a></dd> <dd><a href='/manual/en/refs.basic.session.php'>Session Extensions</a></dd> <dd><a href='/manual/en/refs.basic.text.php'>Text Processing</a></dd> <dd><a href='/manual/en/refs.basic.vartype.php'>Variable and Type Related Extensions</a></dd> <dd><a href='/manual/en/refs.webservice.php'>Web Services</a></dd> <dd><a href='/manual/en/refs.utilspec.windows.php'>Windows Only Extensions</a></dd> <dd><a href='/manual/en/refs.xml.php'>XML Manipulation</a></dd> <dd><a href='/manual/en/refs.ui.php'>GUI Extensions</a></dd> </dl> <dl> <dt>Keyboard Shortcuts</dt><dt>?</dt> <dd>This help</dd> <dt>j</dt> <dd>Next menu item</dd> <dt>k</dt> <dd>Previous menu item</dd> <dt>g p</dt> <dd>Previous man page</dd> <dt>g n</dt> <dd>Next man page</dd> <dt>G</dt> <dd>Scroll to bottom</dd> <dt>g g</dt> <dd>Scroll to top</dd> <dt>g h</dt> <dd>Goto homepage</dd> <dt>g s</dt> <dd>Goto search<br>(current page)</dd> <dt>/</dt> <dd>Focus search box</dd> </dl></div></nav> <div id="goto"> <div class="search"> <div class="text"></div> <div class="results"><ul></ul></div> </div> </div> <div id="breadcrumbs" class="clearfix"> <div id="breadcrumbs-inner"> <div class="next"> <a href="function.imageistruecolor.php"> imageistruecolor &raquo; </a> </div> <div class="prev"> <a href="function.imagegrabwindow.php"> &laquo; imagegrabwindow </a> </div> <ul> <li><a href='index.php'>PHP Manual</a></li> <li><a href='funcref.php'>Function Reference</a></li> <li><a href='refs.utilspec.image.php'>Image Processing and Generation</a></li> <li><a href='book.image.php'>GD</a></li> <li><a href='ref.image.php'>GD and Image Functions</a></li> </ul> </div> </div> <div id="layout" class="clearfix"> <section id="layout-content"> <div class="page-tools"> <div class="change-language"> <form action="/manual/change.php" method="get" id="changelang" name="changelang"> <fieldset> <label for="changelang-langs">Change language:</label> <select onchange="document.changelang.submit()" name="page" id="changelang-langs"> <option value='en/function.imageinterlace.php' selected="selected">English</option> <option value='de/function.imageinterlace.php'>German</option> <option value='es/function.imageinterlace.php'>Spanish</option> <option value='fr/function.imageinterlace.php'>French</option> <option value='it/function.imageinterlace.php'>Italian</option> <option value='ja/function.imageinterlace.php'>Japanese</option> <option value='pt_BR/function.imageinterlace.php'>Brazilian Portuguese</option> <option value='ru/function.imageinterlace.php'>Russian</option> <option value='tr/function.imageinterlace.php'>Turkish</option> <option value='uk/function.imageinterlace.php'>Ukrainian</option> <option value='zh/function.imageinterlace.php'>Chinese (Simplified)</option> <option value='help-translate.php'>Other</option> </select> </fieldset> </form> </div> </div><div id="function.imageinterlace" class="refentry"> <div class="refnamediv"> <h1 class="refname">imageinterlace</h1> <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">imageinterlace</span> &mdash; <span class="dc-title">Enable or disable interlace</span></p> </div> <div class="refsect1 description" id="refsect1-function.imageinterlace-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="methodname"><strong>imageinterlace</strong></span>(<span class="methodparam"><span class="type"><a href="class.gdimage.php" class="type GdImage">GdImage</a></span> <code class="parameter">$image</code></span>, <span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></span> <code class="parameter">$enable</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div> <p class="para rdfs-comment"> <span class="function"><strong>imageinterlace()</strong></span> turns the interlace bit on or off. </p> <p class="para"> If the interlace bit is set and the image is used as a <abbr title="Joint Photographic Experts Group">JPEG</abbr> image, the image is created as a progressive <abbr title="Joint Photographic Experts Group">JPEG</abbr>. </p> </div> <div class="refsect1 parameters" id="refsect1-function.imageinterlace-parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <code class="parameter">image</code></dt><dd><p class="para">A <span class="classname"><a href="class.gdimage.php" class="classname">GdImage</a></span> object, returned by one of the image creation functions, such as <span class="function"><a href="function.imagecreatetruecolor.php" class="function">imagecreatetruecolor()</a></span>.</p></dd> <dt><code class="parameter">interlace</code></dt> <dd> <p class="para"> If <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>, the image will be interlaced, if <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> the interlace bit is turned off. Passing <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> will result in the interlacing behavior not being changed. </p> </dd> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-function.imageinterlace-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> if the interlace bit is set for the image, <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> otherwise. </p> </div> <div class="refsect1 changelog" id="refsect1-function.imageinterlace-changelog"> <h3 class="title">Changelog</h3> <table class="doctable informaltable"> <thead> <tr> <th>Version</th> <th>Description</th> </tr> </thead> <tbody class="tbody"> <tr> <td>8.0.5</td> <td> <span class="function"><strong>imageinterlace()</strong></span> returns a <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> now; previously it returned an <span class="type"><a href="language.types.integer.php" class="type int">int</a></span> (non-zero for interlaced images, zero otherwise). </td> </tr> <tr> <td>8.0.0</td> <td> <code class="parameter">image</code> expects a <span class="classname"><a href="class.gdimage.php" class="classname">GdImage</a></span> instance now; previously, a valid <code class="literal">gd</code> <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> was expected. </td> </tr> <tr> <td>8.0.0</td> <td> <code class="parameter">enable</code> expects a <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> now; previously it expected an <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>. </td> </tr> </tbody> </table> </div> <div class="refsect1 examples" id="refsect1-function.imageinterlace-examples"> <h3 class="title">Examples</h3> <p class="para"> <div class="example" id="example-2828"> <p><strong>Example #1 Turn on interlacing using <span class="function"><strong>imageinterlace()</strong></span></strong></p> <div class="example-contents"> <div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">// Create an image instance<br /></span><span style="color: #0000BB">$im </span><span style="color: #007700">= </span><span style="color: #0000BB">imagecreatefromgif</span><span style="color: #007700">(</span><span style="color: #DD0000">'php.gif'</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">// Enable interlancing<br /></span><span style="color: #0000BB">imageinterlace</span><span style="color: #007700">(</span><span style="color: #0000BB">$im</span><span style="color: #007700">, </span><span style="color: #0000BB">true</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">// Save the interlaced image<br /></span><span style="color: #0000BB">imagegif</span><span style="color: #007700">(</span><span style="color: #0000BB">$im</span><span style="color: #007700">, </span><span style="color: #DD0000">'./php_interlaced.gif'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div> </div> </div> </p> </div> </div> <div class="contribute"> <h3 class="title">Found A Problem?</h3> <div> </div> <div class="edit-bug"> <a href="https://github.com/php/doc-base/blob/master/README.md" title="This will take you to our contribution guidelines on GitHub" target="_blank" rel="noopener noreferrer">Learn How To Improve This Page</a> • <a href="https://github.com/php/doc-en/blob/master/reference/image/functions/imageinterlace.xml">Submit a Pull Request</a> • <a href="https://github.com/php/doc-en/issues/new?body=From%20manual%20page:%20https:%2F%2Fphp.net%2Ffunction.imageinterlace%0A%0A---">Report a Bug</a> </div> </div><section id="usernotes"> <div class="head"> <span class="action"><a href="/manual/add-note.php?sect=function.imageinterlace&amp;repo=en&amp;redirect=https://www.php.net/manual/en/function.imageinterlace.php">+<small>add a note</small></a></span> <h3 class="title">User Contributed Notes <span class="count">11 notes</span></h3> </div><div id="allnotes"> <div class="note" id="125476"> <div class="votes"> <div id="Vu125476"> <a href="/manual/vote-note.php?id=125476&amp;page=function.imageinterlace&amp;vote=up" title="Vote up!" class="usernotes-voteu">up</a> </div> <div id="Vd125476"> <a href="/manual/vote-note.php?id=125476&amp;page=function.imageinterlace&amp;vote=down" title="Vote down!" class="usernotes-voted">down</a> </div> <div class="tally" id="V125476" title="50% like this..."> 0 </div> </div> <a href="#125476" class="name"> <strong class="user"><em>info at dvorakj dot com</em></strong></a><a class="genanchor" href="#125476"> &para;</a><div class="date" title="2020-10-29 09:09"><strong>4 years ago</strong></div> <div class="text" id="Hcom125476"> <div class="phpcode"><code><span class="html">This function will be great only after that browsers will stop sending next data if it is already sent enought to display them on users’s screen due to its possibilities and more pixels to send are absolutely useless. This is the current purpose of jpeg progressivity and still not implemented. After that, you doesn’t have to create many versions of pictures for different densities of screens and it will save a lot of things.</span></code></div> </div> </div> <div class="note" id="124610"> <div class="votes"> <div id="Vu124610"> <a href="/manual/vote-note.php?id=124610&amp;page=function.imageinterlace&amp;vote=up" title="Vote up!" class="usernotes-voteu">up</a> </div> <div id="Vd124610"> <a href="/manual/vote-note.php?id=124610&amp;page=function.imageinterlace&amp;vote=down" title="Vote down!" class="usernotes-voted">down</a> </div> <div class="tally" id="V124610" title="no votes..."> 0 </div> </div> <a href="#124610" class="name"> <strong class="user"><em>razvan_bc at yahoo dot com</em></strong></a><a class="genanchor" href="#124610"> &para;</a><div class="date" title="2020-01-14 08:54"><strong>5 years ago</strong></div> <div class="text" id="Hcom124610"> <div class="phpcode"><code><span class="html">this function really saved my day !!!<br /><br />well for testing i should upload several jpg some had jfif encoding ,<br />so some are color losing when i include them in fpdf ,tcpdf (i tryed 2 open sources to minimize errors to know wht's wrong) .<br />the thumb function i used now (fixed) is<br /><br />public static function jpgtofilethumb($file,$thumb,$lun,$quality){<br /> //de la php.net<br /> list ($x, $y) = @getimagesize ($file);<br /> $img = @imagecreatefromjpeg ($file);<br /> if ($x &gt; $y) {<br /> $tx = $lun;<br /> $ty = round($lun / $x * $y);<br /> } else {<br /> $tx = round($lun / $y * $x);<br /> $ty = $lun;<br /> }<br /> $thb = imagecreatetruecolor ($tx, $ty);<br /><br /> // Enable interlancing<br /> if(imageistruecolor($thb)) imageinterlace($thb, true);<br /><br /> imagecopyresampled ($thb,$img, 0,0, 0,0, $tx,$ty, $x,$y);<br /> imagejpeg ($thb, $thumb, $quality);<br /> imagedestroy ($thb);<br /> imagedestroy ($img);<br /> }</span></code></div> </div> </div> <div class="note" id="72581"> <div class="votes"> <div id="Vu72581"> <a href="/manual/vote-note.php?id=72581&amp;page=function.imageinterlace&amp;vote=up" title="Vote up!" class="usernotes-voteu">up</a> </div> <div id="Vd72581"> <a href="/manual/vote-note.php?id=72581&amp;page=function.imageinterlace&amp;vote=down" title="Vote down!" class="usernotes-voted">down</a> </div> <div class="tally" id="V72581" title="50% like this..."> 0 </div> </div> <a href="#72581" class="name"> <strong class="user"><em>Gerry Danen</em></strong></a><a class="genanchor" href="#72581"> &para;</a><div class="date" title="2007-01-24 05:20"><strong>18 years ago</strong></div> <div class="text" id="Hcom72581"> <div class="phpcode"><code><span class="html">It was suggested that this function can be used to retrieve the interlace bit of an image that is stored in a file. This is not the case. <br />While imageinterlace() returns 0 or 1 if a valid Image resource is passed, passing a file name as a string results in a PHP warning and the return value is neither 0 nor 1.</span></code></div> </div> </div> <div class="note" id="60805"> <div class="votes"> <div id="Vu60805"> <a href="/manual/vote-note.php?id=60805&amp;page=function.imageinterlace&amp;vote=up" title="Vote up!" class="usernotes-voteu">up</a> </div> <div id="Vd60805"> <a href="/manual/vote-note.php?id=60805&amp;page=function.imageinterlace&amp;vote=down" title="Vote down!" class="usernotes-voted">down</a> </div> <div class="tally" id="V60805" title="50% like this..."> 0 </div> </div> <a href="#60805" class="name"> <strong class="user"><em>mangobrain.co.uk</em></strong></a><a class="genanchor" href="#60805"> &para;</a><div class="date" title="2006-01-17 02:03"><strong>19 years ago</strong></div> <div class="text" id="Hcom60805"> <div class="phpcode"><code><span class="html">dr_snapid's comment that "the server sends every Nth line" is not entirely true. A web server need not know anything about the contents of the file it is sending; its job is simply to send the data. Rather, the image is created in such a way that the data corresponding to "every Nth line" appears at the beginning of the file, with the details becoming able to be filled in as more of the file is received by the browser. In PHP's case, the data may have been generated dynamically instead of pulled from a file, but this does not change the fact that it is the data itself that is different, not the manner in which it is sent.*<br /><br />In fact, with JPEG, it is less "every Nth line", and more "every Nth pixel", where N is gradually decreased, resulting in a grid that gets progressively more fine-grained as the data is received (hence the appearance of a low res image becoming more detailed). The browser basically estimates what goes in the gaps between pixels, probably by simply blending between the colours, whilst the "real" data continues arriving. This is a fundamentally different method for encoding the data when compared to non-progressive JPEGs, and coupled with the format's other compression techniques, may indeed result in a different file size.<br /><br />*Can you imagine how much more buggy the Web would be if servers were expected to send different file types using different algorithms, and browsers were expected to be able to receive every one of them?</span></code></div> </div> </div> <div class="note" id="54792"> <div class="votes"> <div id="Vu54792"> <a href="/manual/vote-note.php?id=54792&amp;page=function.imageinterlace&amp;vote=up" title="Vote up!" class="usernotes-voteu">up</a> </div> <div id="Vd54792"> <a href="/manual/vote-note.php?id=54792&amp;page=function.imageinterlace&amp;vote=down" title="Vote down!" class="usernotes-voted">down</a> </div> <div class="tally" id="V54792" title="50% like this..."> 0 </div> </div> <a href="#54792" class="name"> <strong class="user"><em>thomas dot brandl at barff dot de</em></strong></a><a class="genanchor" href="#54792"> &para;</a><div class="date" title="2005-07-15 12:28"><strong>19 years ago</strong></div> <div class="text" id="Hcom54792"> <div class="phpcode"><code><span class="html">Set imageinterlace() to 0 if you need to load the generated images in Flash. Flash does not support progressive JPEGs</span></code></div> </div> </div> <div class="note" id="61267"> <div class="votes"> <div id="Vu61267"> <a href="/manual/vote-note.php?id=61267&amp;page=function.imageinterlace&amp;vote=up" title="Vote up!" class="usernotes-voteu">up</a> </div> <div id="Vd61267"> <a href="/manual/vote-note.php?id=61267&amp;page=function.imageinterlace&amp;vote=down" title="Vote down!" class="usernotes-voted">down</a> </div> <div class="tally" id="V61267" title="40% like this..."> -1 </div> </div> <a href="#61267" class="name"> <strong class="user"><em>julien / at / theoconcept.com</em></strong></a><a class="genanchor" href="#61267"> &para;</a><div class="date" title="2006-01-29 02:33"><strong>19 years ago</strong></div> <div class="text" id="Hcom61267"> <div class="phpcode"><code><span class="html">This function is useful when working with Ming, as SWFBitmap constructor will use a NON INTERLACED Jpeg file, so you have to use imageinterlace(0);</span></code></div> </div> </div> <div class="note" id="47535"> <div class="votes"> <div id="Vu47535"> <a href="/manual/vote-note.php?id=47535&amp;page=function.imageinterlace&amp;vote=up" title="Vote up!" class="usernotes-voteu">up</a> </div> <div id="Vd47535"> <a href="/manual/vote-note.php?id=47535&amp;page=function.imageinterlace&amp;vote=down" title="Vote down!" class="usernotes-voted">down</a> </div> <div class="tally" id="V47535" title="40% like this..."> -1 </div> </div> <a href="#47535" class="name"> <strong class="user"><em>mironto at mironto dot sk</em></strong></a><a class="genanchor" href="#47535"> &para;</a><div class="date" title="2004-11-19 06:17"><strong>20 years ago</strong></div> <div class="text" id="Hcom47535"> <div class="phpcode"><code><span class="html">just to add my 5 cents on the progressive principle of jpeg: there are no several lowres images stored in jpeg along with original picture, the only thing altered is the order of "pixels". in jpeg the image is divided in areas 8x8 pixels, so instead of linear order of pixels (row-by-row), first there is one pixel form each 8x8 area included in the begining of the image data stream, so when the browser recieves all 8x8 area pixels, it can display "pixelate" image and as soon as it recieves more data, the browser can add more pixels and "sharpen" the image.</span></code></div> </div> </div> <div class="note" id="41582"> <div class="votes"> <div id="Vu41582"> <a href="/manual/vote-note.php?id=41582&amp;page=function.imageinterlace&amp;vote=up" title="Vote up!" class="usernotes-voteu">up</a> </div> <div id="Vd41582"> <a href="/manual/vote-note.php?id=41582&amp;page=function.imageinterlace&amp;vote=down" title="Vote down!" class="usernotes-voted">down</a> </div> <div class="tally" id="V41582" title="40% like this..."> -1 </div> </div> <a href="#41582" class="name"> <strong class="user"><em>manuel.warum at edu.uni-klu.ac.at</em></strong></a><a class="genanchor" href="#41582"> &para;</a><div class="date" title="2004-04-15 10:41"><strong>20 years ago</strong></div> <div class="text" id="Hcom41582"> <div class="phpcode"><code><span class="html">About MichaelSoft's note "Imageinterlace($im, 1) creates a JPG which is first loaded completely before showing anything":<br /><br />Actually, that's not completely true.<br />This only happens with Internet Explorer (any version, for the time being) as it doesn't seem to support progressive displaying and rather shows the image, when it's 100% done with loading. Other browsers (Mozilla, Mozilla Firefox, Opera, Konqueror, etc.) do their job as they're supposed to do: Displaying a very low-res image, then overlaying a midlow-res image (while loading), and then displaying more and more details.</span></code></div> </div> </div> <div class="note" id="40929"> <div class="votes"> <div id="Vu40929"> <a href="/manual/vote-note.php?id=40929&amp;page=function.imageinterlace&amp;vote=up" title="Vote up!" class="usernotes-voteu">up</a> </div> <div id="Vd40929"> <a href="/manual/vote-note.php?id=40929&amp;page=function.imageinterlace&amp;vote=down" title="Vote down!" class="usernotes-voted">down</a> </div> <div class="tally" id="V40929" title="25% like this..."> -2 </div> </div> <a href="#40929" class="name"> <strong class="user"><em>ben dash xo at dubplates dot org</em></strong></a><a class="genanchor" href="#40929"> &para;</a><div class="date" title="2004-03-19 06:25"><strong>20 years ago</strong></div> <div class="text" id="Hcom40929"> <div class="phpcode"><code><span class="html">There is a bug in Microsoft Internet Explorer (at least at present) that means that often, a progressive/interlaced JPEG will actually NOT show at all whilst loading, suddenly appearing only when the entire picture has loaded. A regular NON-interlaced/NON-progressive JPEG will display line by line as it loads, which paradoxically gives the illusion that it's loading faster. MSIE definitely has this one backwards!!<br /><br />This behaviour is not apparent in other browsers such as Mozilla/FireFox - in these browsers, the image loads progressively, as it should.</span></code></div> </div> </div> <div class="note" id="58954"> <div class="votes"> <div id="Vu58954"> <a href="/manual/vote-note.php?id=58954&amp;page=function.imageinterlace&amp;vote=up" title="Vote up!" class="usernotes-voteu">up</a> </div> <div id="Vd58954"> <a href="/manual/vote-note.php?id=58954&amp;page=function.imageinterlace&amp;vote=down" title="Vote down!" class="usernotes-voted">down</a> </div> <div class="tally" id="V58954" title="28% like this..."> -3 </div> </div> <a href="#58954" class="name"> <strong class="user"><em>dr_snapid at mxm dot com dot au</em></strong></a><a class="genanchor" href="#58954"> &para;</a><div class="date" title="2005-11-21 08:16"><strong>19 years ago</strong></div> <div class="text" id="Hcom58954"> <div class="phpcode"><code><span class="html">Interlacing doesnt store another image, it simple changes the order in which the images lines are sent and rendered. The server sends every Nth line, reaches the end, then goes back to the start, reading the lines in between. <br /><br />After each pass the browser displays the downloaded lines, plus filles the lines not yet received the same, but with each pass the gaps being filled get smaller and the image sharpens. After several passes every line has been read, and the browser has rendered the image in full detail.<br /><br />Hope that makes sense, it does explain why there should not really be any difference in filesize, so I cant explain why some people have observed a file size difference.<br /><br />As I understand it, there is only 1 bit in the file which says if its interlaced or not, and the server and client (browser) just handle it differently if it is set to 1.</span></code></div> </div> </div> <div class="note" id="53753"> <div class="votes"> <div id="Vu53753"> <a href="/manual/vote-note.php?id=53753&amp;page=function.imageinterlace&amp;vote=up" title="Vote up!" class="usernotes-voteu">up</a> </div> <div id="Vd53753"> <a href="/manual/vote-note.php?id=53753&amp;page=function.imageinterlace&amp;vote=down" title="Vote down!" class="usernotes-voted">down</a> </div> <div class="tally" id="V53753" title="0% like this..."> -5 </div> </div> <a href="#53753" class="name"> <strong class="user"><em>drake127</em></strong></a><a class="genanchor" href="#53753"> &para;</a><div class="date" title="2005-06-11 03:51"><strong>19 years ago</strong></div> <div class="text" id="Hcom53753"> <div class="phpcode"><code><span class="html">Interlancing works also with PNG files but it increase filesize (from 14.4M to 17.7M).</span></code></div> </div> </div></div> <div class="foot"><a href="/manual/add-note.php?sect=function.imageinterlace&amp;repo=en&amp;redirect=https://www.php.net/manual/en/function.imageinterlace.php">+<small>add a note</small></a></div> </section> </section><!-- layout-content --> <aside class='layout-menu'> <ul class='parent-menu-list'> <li> <a href="ref.image.php">GD and Image Functions</a> <ul class='child-menu-list'> <li class=""> <a href="function.gd-info.php" title="gd_&#8203;info">gd_&#8203;info</a> </li> <li class=""> <a href="function.getimagesize.php" title="getimagesize">getimagesize</a> </li> <li class=""> <a href="function.getimagesizefromstring.php" title="getimagesizefromstring">getimagesizefromstring</a> </li> <li class=""> <a href="function.image-type-to-extension.php" title="image_&#8203;type_&#8203;to_&#8203;extension">image_&#8203;type_&#8203;to_&#8203;extension</a> </li> <li class=""> <a href="function.image-type-to-mime-type.php" title="image_&#8203;type_&#8203;to_&#8203;mime_&#8203;type">image_&#8203;type_&#8203;to_&#8203;mime_&#8203;type</a> </li> <li class=""> <a href="function.image2wbmp.php" title="image2wbmp">image2wbmp</a> </li> <li class=""> <a href="function.imageaffine.php" title="imageaffine">imageaffine</a> </li> <li class=""> <a href="function.imageaffinematrixconcat.php" title="imageaffinematrixconcat">imageaffinematrixconcat</a> </li> <li class=""> <a href="function.imageaffinematrixget.php" title="imageaffinematrixget">imageaffinematrixget</a> </li> <li class=""> <a href="function.imagealphablending.php" title="imagealphablending">imagealphablending</a> </li> <li class=""> <a href="function.imageantialias.php" title="imageantialias">imageantialias</a> </li> <li class=""> <a href="function.imagearc.php" title="imagearc">imagearc</a> </li> <li class=""> <a href="function.imageavif.php" title="imageavif">imageavif</a> </li> <li class=""> <a href="function.imagebmp.php" title="imagebmp">imagebmp</a> </li> <li class=""> <a href="function.imagechar.php" title="imagechar">imagechar</a> </li> <li class=""> <a href="function.imagecharup.php" title="imagecharup">imagecharup</a> </li> <li class=""> <a href="function.imagecolorallocate.php" title="imagecolorallocate">imagecolorallocate</a> </li> <li class=""> <a href="function.imagecolorallocatealpha.php" title="imagecolorallocatealpha">imagecolorallocatealpha</a> </li> <li class=""> <a href="function.imagecolorat.php" title="imagecolorat">imagecolorat</a> </li> <li class=""> <a href="function.imagecolorclosest.php" title="imagecolorclosest">imagecolorclosest</a> </li> <li class=""> <a href="function.imagecolorclosestalpha.php" title="imagecolorclosestalpha">imagecolorclosestalpha</a> </li> <li class=""> <a href="function.imagecolorclosesthwb.php" title="imagecolorclosesthwb">imagecolorclosesthwb</a> </li> <li class=""> <a href="function.imagecolordeallocate.php" title="imagecolordeallocate">imagecolordeallocate</a> </li> <li class=""> <a href="function.imagecolorexact.php" title="imagecolorexact">imagecolorexact</a> </li> <li class=""> <a href="function.imagecolorexactalpha.php" title="imagecolorexactalpha">imagecolorexactalpha</a> </li> <li class=""> <a href="function.imagecolormatch.php" title="imagecolormatch">imagecolormatch</a> </li> <li class=""> <a href="function.imagecolorresolve.php" title="imagecolorresolve">imagecolorresolve</a> </li> <li class=""> <a href="function.imagecolorresolvealpha.php" title="imagecolorresolvealpha">imagecolorresolvealpha</a> </li> <li class=""> <a href="function.imagecolorset.php" title="imagecolorset">imagecolorset</a> </li> <li class=""> <a href="function.imagecolorsforindex.php" title="imagecolorsforindex">imagecolorsforindex</a> </li> <li class=""> <a href="function.imagecolorstotal.php" title="imagecolorstotal">imagecolorstotal</a> </li> <li class=""> <a href="function.imagecolortransparent.php" title="imagecolortransparent">imagecolortransparent</a> </li> <li class=""> <a href="function.imageconvolution.php" title="imageconvolution">imageconvolution</a> </li> <li class=""> <a href="function.imagecopy.php" title="imagecopy">imagecopy</a> </li> <li class=""> <a href="function.imagecopymerge.php" title="imagecopymerge">imagecopymerge</a> </li> <li class=""> <a href="function.imagecopymergegray.php" title="imagecopymergegray">imagecopymergegray</a> </li> <li class=""> <a href="function.imagecopyresampled.php" title="imagecopyresampled">imagecopyresampled</a> </li> <li class=""> <a href="function.imagecopyresized.php" title="imagecopyresized">imagecopyresized</a> </li> <li class=""> <a href="function.imagecreate.php" title="imagecreate">imagecreate</a> </li> <li class=""> <a href="function.imagecreatefromavif.php" title="imagecreatefromavif">imagecreatefromavif</a> </li> <li class=""> <a href="function.imagecreatefrombmp.php" title="imagecreatefrombmp">imagecreatefrombmp</a> </li> <li class=""> <a href="function.imagecreatefromgd.php" title="imagecreatefromgd">imagecreatefromgd</a> </li> <li class=""> <a href="function.imagecreatefromgd2.php" title="imagecreatefromgd2">imagecreatefromgd2</a> </li> <li class=""> <a href="function.imagecreatefromgd2part.php" title="imagecreatefromgd2part">imagecreatefromgd2part</a> </li> <li class=""> <a href="function.imagecreatefromgif.php" title="imagecreatefromgif">imagecreatefromgif</a> </li> <li class=""> <a href="function.imagecreatefromjpeg.php" title="imagecreatefromjpeg">imagecreatefromjpeg</a> </li> <li class=""> <a href="function.imagecreatefrompng.php" title="imagecreatefrompng">imagecreatefrompng</a> </li> <li class=""> <a href="function.imagecreatefromstring.php" title="imagecreatefromstring">imagecreatefromstring</a> </li> <li class=""> <a href="function.imagecreatefromtga.php" title="imagecreatefromtga">imagecreatefromtga</a> </li> <li class=""> <a href="function.imagecreatefromwbmp.php" title="imagecreatefromwbmp">imagecreatefromwbmp</a> </li> <li class=""> <a href="function.imagecreatefromwebp.php" title="imagecreatefromwebp">imagecreatefromwebp</a> </li> <li class=""> <a href="function.imagecreatefromxbm.php" title="imagecreatefromxbm">imagecreatefromxbm</a> </li> <li class=""> <a href="function.imagecreatefromxpm.php" title="imagecreatefromxpm">imagecreatefromxpm</a> </li> <li class=""> <a href="function.imagecreatetruecolor.php" title="imagecreatetruecolor">imagecreatetruecolor</a> </li> <li class=""> <a href="function.imagecrop.php" title="imagecrop">imagecrop</a> </li> <li class=""> <a href="function.imagecropauto.php" title="imagecropauto">imagecropauto</a> </li> <li class=""> <a href="function.imagedashedline.php" title="imagedashedline">imagedashedline</a> </li> <li class=""> <a href="function.imagedestroy.php" title="imagedestroy">imagedestroy</a> </li> <li class=""> <a href="function.imageellipse.php" title="imageellipse">imageellipse</a> </li> <li class=""> <a href="function.imagefill.php" title="imagefill">imagefill</a> </li> <li class=""> <a href="function.imagefilledarc.php" title="imagefilledarc">imagefilledarc</a> </li> <li class=""> <a href="function.imagefilledellipse.php" title="imagefilledellipse">imagefilledellipse</a> </li> <li class=""> <a href="function.imagefilledpolygon.php" title="imagefilledpolygon">imagefilledpolygon</a> </li> <li class=""> <a href="function.imagefilledrectangle.php" title="imagefilledrectangle">imagefilledrectangle</a> </li> <li class=""> <a href="function.imagefilltoborder.php" title="imagefilltoborder">imagefilltoborder</a> </li> <li class=""> <a href="function.imagefilter.php" title="imagefilter">imagefilter</a> </li> <li class=""> <a href="function.imageflip.php" title="imageflip">imageflip</a> </li> <li class=""> <a href="function.imagefontheight.php" title="imagefontheight">imagefontheight</a> </li> <li class=""> <a href="function.imagefontwidth.php" title="imagefontwidth">imagefontwidth</a> </li> <li class=""> <a href="function.imageftbbox.php" title="imageftbbox">imageftbbox</a> </li> <li class=""> <a href="function.imagefttext.php" title="imagefttext">imagefttext</a> </li> <li class=""> <a href="function.imagegammacorrect.php" title="imagegammacorrect">imagegammacorrect</a> </li> <li class=""> <a href="function.imagegd.php" title="imagegd">imagegd</a> </li> <li class=""> <a href="function.imagegd2.php" title="imagegd2">imagegd2</a> </li> <li class=""> <a href="function.imagegetclip.php" title="imagegetclip">imagegetclip</a> </li> <li class=""> <a href="function.imagegetinterpolation.php" title="imagegetinterpolation">imagegetinterpolation</a> </li> <li class=""> <a href="function.imagegif.php" title="imagegif">imagegif</a> </li> <li class=""> <a href="function.imagegrabscreen.php" title="imagegrabscreen">imagegrabscreen</a> </li> <li class=""> <a href="function.imagegrabwindow.php" title="imagegrabwindow">imagegrabwindow</a> </li> <li class="current"> <a href="function.imageinterlace.php" title="imageinterlace">imageinterlace</a> </li> <li class=""> <a href="function.imageistruecolor.php" title="imageistruecolor">imageistruecolor</a> </li> <li class=""> <a href="function.imagejpeg.php" title="imagejpeg">imagejpeg</a> </li> <li class=""> <a href="function.imagelayereffect.php" title="imagelayereffect">imagelayereffect</a> </li> <li class=""> <a href="function.imageline.php" title="imageline">imageline</a> </li> <li class=""> <a href="function.imageloadfont.php" title="imageloadfont">imageloadfont</a> </li> <li class=""> <a href="function.imageopenpolygon.php" title="imageopenpolygon">imageopenpolygon</a> </li> <li class=""> <a href="function.imagepalettecopy.php" title="imagepalettecopy">imagepalettecopy</a> </li> <li class=""> <a href="function.imagepalettetotruecolor.php" title="imagepalettetotruecolor">imagepalettetotruecolor</a> </li> <li class=""> <a href="function.imagepng.php" title="imagepng">imagepng</a> </li> <li class=""> <a href="function.imagepolygon.php" title="imagepolygon">imagepolygon</a> </li> <li class=""> <a href="function.imagerectangle.php" title="imagerectangle">imagerectangle</a> </li> <li class=""> <a href="function.imageresolution.php" title="imageresolution">imageresolution</a> </li> <li class=""> <a href="function.imagerotate.php" title="imagerotate">imagerotate</a> </li> <li class=""> <a href="function.imagesavealpha.php" title="imagesavealpha">imagesavealpha</a> </li> <li class=""> <a href="function.imagescale.php" title="imagescale">imagescale</a> </li> <li class=""> <a href="function.imagesetbrush.php" title="imagesetbrush">imagesetbrush</a> </li> <li class=""> <a href="function.imagesetclip.php" title="imagesetclip">imagesetclip</a> </li> <li class=""> <a href="function.imagesetinterpolation.php" title="imagesetinterpolation">imagesetinterpolation</a> </li> <li class=""> <a href="function.imagesetpixel.php" title="imagesetpixel">imagesetpixel</a> </li> <li class=""> <a href="function.imagesetstyle.php" title="imagesetstyle">imagesetstyle</a> </li> <li class=""> <a href="function.imagesetthickness.php" title="imagesetthickness">imagesetthickness</a> </li> <li class=""> <a href="function.imagesettile.php" title="imagesettile">imagesettile</a> </li> <li class=""> <a href="function.imagestring.php" title="imagestring">imagestring</a> </li> <li class=""> <a href="function.imagestringup.php" title="imagestringup">imagestringup</a> </li> <li class=""> <a href="function.imagesx.php" title="imagesx">imagesx</a> </li> <li class=""> <a href="function.imagesy.php" title="imagesy">imagesy</a> </li> <li class=""> <a href="function.imagetruecolortopalette.php" title="imagetruecolortopalette">imagetruecolortopalette</a> </li> <li class=""> <a href="function.imagettfbbox.php" title="imagettfbbox">imagettfbbox</a> </li> <li class=""> <a href="function.imagettftext.php" title="imagettftext">imagettftext</a> </li> <li class=""> <a href="function.imagetypes.php" title="imagetypes">imagetypes</a> </li> <li class=""> <a href="function.imagewbmp.php" title="imagewbmp">imagewbmp</a> </li> <li class=""> <a href="function.imagewebp.php" title="imagewebp">imagewebp</a> </li> <li class=""> <a href="function.imagexbm.php" title="imagexbm">imagexbm</a> </li> <li class=""> <a href="function.iptcembed.php" title="iptcembed">iptcembed</a> </li> <li class=""> <a href="function.iptcparse.php" title="iptcparse">iptcparse</a> </li> <li class=""> <a href="function.jpeg2wbmp.php" title="jpeg2wbmp">jpeg2wbmp</a> </li> <li class=""> <a href="function.png2wbmp.php" title="png2wbmp">png2wbmp</a> </li> </ul> </li> </ul> </aside> </div><!-- layout --> <footer> <div class="container footer-content"> <div class="row-fluid"> <ul class="footmenu"> <li><a href="/manual/en/copyright.php">Copyright &copy; 2001-2025 The PHP Documentation Group</a></li> <li><a href="/my.php">My PHP.net</a></li> <li><a href="/contact.php">Contact</a></li> <li><a href="/sites.php">Other PHP.net sites</a></li> <li><a href="/privacy.php">Privacy policy</a></li> </ul> </div> </div> </footer> <script src="/cached.php?t=1731172202&amp;f=/js/ext/jquery-3.6.0.min.js"></script> <script src="/cached.php?t=1723177202&amp;f=/js/ext/FuzzySearch.min.js"></script> <script src="/cached.php?t=1707321815&amp;f=/js/ext/mousetrap.min.js"></script> <script src="/cached.php?t=1707321815&amp;f=/js/ext/jquery.scrollTo.min.js"></script> <script src="/cached.php?t=1738028401&amp;f=/js/search.js"></script> <script src="/cached.php?t=1738742401&amp;f=/js/common.js"></script> <script type="module" src="/cached.php?t=1738318202&amp;f=/js/interactive-examples.js"></script> <a id="toTop" href="javascript:;"><span id="toTopHover"></span><img width="40" height="40" alt="To Top" src="/images/to-top@2x.png"></a> <div id="search-modal__backdrop" class="search-modal__backdrop"> <div role="dialog" aria-label="Search modal" id="search-modal" class="search-modal" > <div class="search-modal__header"> <div class="search-modal__form"> <div class="search-modal__input-icon"> <!-- https://feathericons.com search --> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <circle cx="11" cy="11" r="8"></circle> <line x1="21" y1="21" x2="16.65" y2="16.65"></line> </svg> </div> <input type="search" id="search-modal__input" class="search-modal__input" placeholder="Search docs" aria-label="Search docs" /> </div> <button aria-label="Close" class="search-modal__close"> <!-- https://pictogrammers.com/library/mdi/icon/close/ --> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="24" viewBox="0 0 24 24" > <path d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"/> </svg> </button> </div> <div role="listbox" aria-label="Search results" id="search-modal__results" class="search-modal__results" ></div> <div class="search-modal__helper-text"> <div> <kbd>↑</kbd> and <kbd>↓</kbd> to navigate • <kbd>Enter</kbd> to select • <kbd>Esc</kbd> to close </div> <div> Press <kbd>Enter</kbd> without selection to search using Google </div> </div> </div> </div> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10