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