php-doc-en/reference/image/functions/imagejpeg.xml
Mehdi Achour 13b0b6f8ad gd: switch to new docstyle
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@227185 c90b9560-bf6c-de11-be94-00142212c4b1
2007-01-14 03:15:21 +00:00

101 lines
2.8 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.9 $ -->
<refentry id="function.imagejpeg">
<refnamediv>
<refname>imagejpeg</refname>
<refpurpose>Output image to browser or file</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>imagejpeg</methodname>
<methodparam><type>resource</type><parameter>image</parameter></methodparam>
<methodparam choice="opt"><type>string</type><parameter>filename</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>quality</parameter></methodparam>
</methodsynopsis>
<para>
<function>imagejpeg</function> creates a <acronym>JPEG</acronym> file from
the given <parameter>image</parameter>.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
&gd.image.description;
<varlistentry>
<term><parameter>filename</parameter></term>
<listitem>
<para>
The path to the saved file. If not set or &null;, the raw image stream
will be outputed directly.
</para>
<para>
To skip this argument in order to provide the
<parameter>quality</parameter> parameter, use &null;.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>quality</parameter></term>
<listitem>
<para>
<parameter>quality</parameter> is optional, and ranges from 0 (worst
quality, smaller file) to 100 (best quality, biggest file). The
default is the default IJG quality value (about 75).
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.success;
</para>
</refsect1>
<refsect1 role="notes">
&reftitle.notes;
&note.config.jpeg;
<note>
<para>
If you want to output Progressive JPEGs, you need to set interlacing
on with <function>imageinterlace</function>.
</para>
</note>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>imagepng</function></member>
<member><function>imagegif</function></member>
<member><function>imagewbmp</function></member>
<member><function>imageinterlace</function></member>
<member><function>imagetypes</function></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- 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:"../../../../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
-->