source: www/manuals/PHP_manual/function.imagejpeg.html@ 1

Last change on this file since 1 was 1, checked in by george, 17 years ago

Prvotní import všeho

File size: 4.0 KB
Line 
1<HTML
2><HEAD
3><TITLE
4>imagejpeg</TITLE
5><META
6NAME="GENERATOR"
7CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
8REL="HOME"
9TITLE="Manuál PHP"
10HREF="index.html"><LINK
11REL="UP"
12TITLE="Image functions"
13HREF="ref.image.html"><LINK
14REL="PREVIOUS"
15TITLE="imageinterlace"
16HREF="function.imageinterlace.html"><LINK
17REL="NEXT"
18TITLE="imageline"
19HREF="function.imageline.html"><META
20HTTP-EQUIV="Content-type"
21CONTENT="text/html; charset=ISO-8859-2"></HEAD
22><BODY
23CLASS="refentry"
24BGCOLOR="#FFFFFF"
25TEXT="#000000"
26LINK="#0000FF"
27VLINK="#840084"
28ALINK="#0000FF"
29><DIV
30CLASS="NAVHEADER"
31><TABLE
32SUMMARY="Header navigation table"
33WIDTH="100%"
34BORDER="0"
35CELLPADDING="0"
36CELLSPACING="0"
37><TR
38><TH
39COLSPAN="3"
40ALIGN="center"
41>Manuál PHP</TH
42></TR
43><TR
44><TD
45WIDTH="10%"
46ALIGN="left"
47VALIGN="bottom"
48><A
49HREF="function.imageinterlace.html"
50ACCESSKEY="P"
51>Pøedcházející</A
52></TD
53><TD
54WIDTH="80%"
55ALIGN="center"
56VALIGN="bottom"
57></TD
58><TD
59WIDTH="10%"
60ALIGN="right"
61VALIGN="bottom"
62><A
63HREF="function.imageline.html"
64ACCESSKEY="N"
65>Dal¹í</A
66></TD
67></TR
68></TABLE
69><HR
70ALIGN="LEFT"
71WIDTH="100%"></DIV
72><H1
73><A
74NAME="function.imagejpeg"
75></A
76>imagejpeg</H1
77><DIV
78CLASS="refnamediv"
79><A
80NAME="AEN32099"
81></A
82><P
83> (PHP 3&#62;= 3.0.16, PHP 4 )</P
84>imagejpeg&nbsp;--&nbsp;Output image to browser or file</DIV
85><DIV
86CLASS="refsect1"
87><A
88NAME="AEN32102"
89></A
90><H2
91>Description</H2
92>int <B
93CLASS="methodname"
94>imagejpeg</B
95> ( resource image [, string filename [, int quality]])<BR
96></BR
97><P
98>&#13; <B
99CLASS="function"
100>imagejpeg()</B
101> creates the
102 <SPAN
103CLASS="acronym"
104>JPEG</SPAN
105> file in filename from the image
106 <TT
107CLASS="parameter"
108><I
109>image</I
110></TT
111>. The <TT
112CLASS="parameter"
113><I
114>image</I
115></TT
116> argument
117 is the return from the <A
118HREF="function.imagecreate.html"
119><B
120CLASS="function"
121>imagecreate()</B
122></A
123> function.
124 </P
125><P
126>&#13; The filename argument is optional, and if left off, the raw image
127 stream will be output directly. To skip the filename argument in
128 order to provide a quality argument just use an empty string
129 (''). By sending an image/jpeg content-type using
130 <A
131HREF="function.header.html"
132><B
133CLASS="function"
134>header()</B
135></A
136>, you can create a PHP script that
137 outputs JPEG images directly.
138 </P
139><DIV
140CLASS="note"
141><BLOCKQUOTE
142CLASS="note"
143><P
144><B
145>Poznámka: </B
146>
147 JPEG support is only available if PHP was compiled
148 against GD-1.8 or later.
149 </P
150></BLOCKQUOTE
151></DIV
152><P
153>&#13; <TT
154CLASS="parameter"
155><I
156>quality</I
157></TT
158> is optional, and ranges from
159 0 (worst quality, smaller file) to 100 (best quality, biggest file).
160 The default is the default IJG quality value (about 75).
161 </P
162><P
163>&#13; If you want to output Progressive JPEGs, you need to set interlacing
164 on with <A
165HREF="function.imageinterlace.html"
166><B
167CLASS="function"
168>imageinterlace()</B
169></A
170>.
171 </P
172><P
173>&#13; See also
174 <A
175HREF="function.imagepng.html"
176><B
177CLASS="function"
178>imagepng()</B
179></A
180>,
181 <A
182HREF="function.imagegif.html"
183><B
184CLASS="function"
185>imagegif()</B
186></A
187>,
188 <A
189HREF="function.imagewbmp.html"
190><B
191CLASS="function"
192>imagewbmp()</B
193></A
194>,
195 <A
196HREF="function.imageinterlace.html"
197><B
198CLASS="function"
199>imageinterlace()</B
200></A
201> and
202 <A
203HREF="function.imagetypes.html"
204><B
205CLASS="function"
206>imagetypes()</B
207></A
208>.
209 </P
210></DIV
211><DIV
212CLASS="NAVFOOTER"
213><HR
214ALIGN="LEFT"
215WIDTH="100%"><TABLE
216SUMMARY="Footer navigation table"
217WIDTH="100%"
218BORDER="0"
219CELLPADDING="0"
220CELLSPACING="0"
221><TR
222><TD
223WIDTH="33%"
224ALIGN="left"
225VALIGN="top"
226><A
227HREF="function.imageinterlace.html"
228ACCESSKEY="P"
229>Pøedcházející</A
230></TD
231><TD
232WIDTH="34%"
233ALIGN="center"
234VALIGN="top"
235><A
236HREF="index.html"
237ACCESSKEY="H"
238>Domù</A
239></TD
240><TD
241WIDTH="33%"
242ALIGN="right"
243VALIGN="top"
244><A
245HREF="function.imageline.html"
246ACCESSKEY="N"
247>Dal¹í</A
248></TD
249></TR
250><TR
251><TD
252WIDTH="33%"
253ALIGN="left"
254VALIGN="top"
255>imageinterlace</TD
256><TD
257WIDTH="34%"
258ALIGN="center"
259VALIGN="top"
260><A
261HREF="ref.image.html"
262ACCESSKEY="U"
263>Nahoru</A
264></TD
265><TD
266WIDTH="33%"
267ALIGN="right"
268VALIGN="top"
269>imageline</TD
270></TR
271></TABLE
272></DIV
273></BODY
274></HTML
275>
Note: See TracBrowser for help on using the repository browser.