1 | <HTML
|
---|
2 | ><HEAD
|
---|
3 | ><TITLE
|
---|
4 | >Image functions</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="Reference funkcí"
|
---|
13 | HREF="funcref.html"><LINK
|
---|
14 | REL="PREVIOUS"
|
---|
15 | TITLE="ob_iconv_handler"
|
---|
16 | HREF="function.ob-iconv-handler.html"><LINK
|
---|
17 | REL="NEXT"
|
---|
18 | TITLE="exif_imagetype"
|
---|
19 | HREF="function.exif-imagetype.html"><META
|
---|
20 | HTTP-EQUIV="Content-type"
|
---|
21 | CONTENT="text/html; charset=ISO-8859-2"></HEAD
|
---|
22 | ><BODY
|
---|
23 | CLASS="reference"
|
---|
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.ob-iconv-handler.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.exif-imagetype.html"
|
---|
64 | ACCESSKEY="N"
|
---|
65 | >Dal¹í</A
|
---|
66 | ></TD
|
---|
67 | ></TR
|
---|
68 | ></TABLE
|
---|
69 | ><HR
|
---|
70 | ALIGN="LEFT"
|
---|
71 | WIDTH="100%"></DIV
|
---|
72 | ><DIV
|
---|
73 | CLASS="reference"
|
---|
74 | ><A
|
---|
75 | NAME="ref.image"
|
---|
76 | ></A
|
---|
77 | ><DIV
|
---|
78 | CLASS="TITLEPAGE"
|
---|
79 | ><H1
|
---|
80 | CLASS="title"
|
---|
81 | >XLI. Image functions</H1
|
---|
82 | ><DIV
|
---|
83 | CLASS="PARTINTRO"
|
---|
84 | ><A
|
---|
85 | NAME="AEN29915"
|
---|
86 | ></A
|
---|
87 | ><DIV
|
---|
88 | CLASS="section"
|
---|
89 | ><H1
|
---|
90 | CLASS="section"
|
---|
91 | ><A
|
---|
92 | NAME="image.intro"
|
---|
93 | ></A
|
---|
94 | >Úvod</H1
|
---|
95 | ><P
|
---|
96 | > PHP is not limited to creating just HTML output. It can also be
|
---|
97 | used to create and manipulate image files in a variety of different
|
---|
98 | image formats, including gif, png, jpg, wbmp, and xpm. Even more
|
---|
99 | convenient, PHP can output image streams directly to a browser. You
|
---|
100 | will need to compile PHP with the GD library of image functions for
|
---|
101 | this to work. GD and PHP may also require other libraries, depending
|
---|
102 | on which image formats you want to work with.
|
---|
103 | </P
|
---|
104 | ><P
|
---|
105 | > You can use the image functions in PHP to get the size of
|
---|
106 | <SPAN
|
---|
107 | CLASS="acronym"
|
---|
108 | >JPEG</SPAN
|
---|
109 | >, <SPAN
|
---|
110 | CLASS="acronym"
|
---|
111 | >GIF</SPAN
|
---|
112 | >,
|
---|
113 | <SPAN
|
---|
114 | CLASS="acronym"
|
---|
115 | >PNG</SPAN
|
---|
116 | >, <SPAN
|
---|
117 | CLASS="acronym"
|
---|
118 | >SWF</SPAN
|
---|
119 | >,
|
---|
120 | <SPAN
|
---|
121 | CLASS="acronym"
|
---|
122 | >TIFF</SPAN
|
---|
123 | > and <SPAN
|
---|
124 | CLASS="acronym"
|
---|
125 | >JPEG2000</SPAN
|
---|
126 | > images.
|
---|
127 | </P
|
---|
128 | ><P
|
---|
129 | > <DIV
|
---|
130 | CLASS="note"
|
---|
131 | ><BLOCKQUOTE
|
---|
132 | CLASS="note"
|
---|
133 | ><P
|
---|
134 | ><B
|
---|
135 | >Poznámka: </B
|
---|
136 | >
|
---|
137 | Read requirements section about how to expand image capabilities
|
---|
138 | to read, write and modify images and to read meta data of pictures
|
---|
139 | taken by digital cameras.
|
---|
140 | </P
|
---|
141 | ></BLOCKQUOTE
|
---|
142 | ></DIV
|
---|
143 | >
|
---|
144 | </P
|
---|
145 | ></DIV
|
---|
146 | ><DIV
|
---|
147 | CLASS="section"
|
---|
148 | ><H1
|
---|
149 | CLASS="section"
|
---|
150 | ><A
|
---|
151 | NAME="image.requirements"
|
---|
152 | ></A
|
---|
153 | >Po¾adavky</H1
|
---|
154 | ><P
|
---|
155 | > If you have the <SPAN
|
---|
156 | CLASS="acronym"
|
---|
157 | >GD</SPAN
|
---|
158 | > library (available at <A
|
---|
159 | HREF="http://www.boutell.com/gd/"
|
---|
160 | TARGET="_top"
|
---|
161 | >http://www.boutell.com/gd/</A
|
---|
162 | >) you will also be able to create
|
---|
163 | and manipulate images.
|
---|
164 | </P
|
---|
165 | ><P
|
---|
166 | > The format of images you are able to manipulate depend on the
|
---|
167 | version of <SPAN
|
---|
168 | CLASS="acronym"
|
---|
169 | >GD</SPAN
|
---|
170 | > you install, and any other libraries
|
---|
171 | <SPAN
|
---|
172 | CLASS="acronym"
|
---|
173 | >GD</SPAN
|
---|
174 | > might need to access those image formats.
|
---|
175 | Versions of <SPAN
|
---|
176 | CLASS="acronym"
|
---|
177 | >GD</SPAN
|
---|
178 | > older than gd-1.6
|
---|
179 | support gif format images, and do not support png, where versions
|
---|
180 | greater than gd-1.6 support png, not gif.
|
---|
181 | <DIV
|
---|
182 | CLASS="note"
|
---|
183 | ><BLOCKQUOTE
|
---|
184 | CLASS="note"
|
---|
185 | ><P
|
---|
186 | ><B
|
---|
187 | >Poznámka: </B
|
---|
188 | >
|
---|
189 | Since PHP 4.3 there is a bundled version of the GD lib. This bundled
|
---|
190 | version has some additional features like alpha blending and should
|
---|
191 | be used in preference to the external library since it's codebase is
|
---|
192 | better maintained and more stable.
|
---|
193 | </P
|
---|
194 | ></BLOCKQUOTE
|
---|
195 | ></DIV
|
---|
196 | >
|
---|
197 | </P
|
---|
198 | ><P
|
---|
199 | > If you have PHP compiled with <TT
|
---|
200 | CLASS="option"
|
---|
201 | >--enable-exif</TT
|
---|
202 | >
|
---|
203 | you are able to work with information stored in headers of
|
---|
204 | <SPAN
|
---|
205 | CLASS="acronym"
|
---|
206 | >JPEG</SPAN
|
---|
207 | > and <SPAN
|
---|
208 | CLASS="acronym"
|
---|
209 | >TIFF</SPAN
|
---|
210 | > images. This way you can
|
---|
211 | read meta data generated by digital cameras as mentioned above. These
|
---|
212 | functions does not require the <SPAN
|
---|
213 | CLASS="acronym"
|
---|
214 | >GD</SPAN
|
---|
215 | > library.
|
---|
216 | <DIV
|
---|
217 | CLASS="note"
|
---|
218 | ><BLOCKQUOTE
|
---|
219 | CLASS="note"
|
---|
220 | ><P
|
---|
221 | ><B
|
---|
222 | >Poznámka: </B
|
---|
223 | >
|
---|
224 | PHP does not require any additional library for exif the module.
|
---|
225 | </P
|
---|
226 | ></BLOCKQUOTE
|
---|
227 | ></DIV
|
---|
228 | >
|
---|
229 | </P
|
---|
230 | ></DIV
|
---|
231 | ><DIV
|
---|
232 | CLASS="section"
|
---|
233 | ><H1
|
---|
234 | CLASS="section"
|
---|
235 | ><A
|
---|
236 | NAME="image.installation"
|
---|
237 | ></A
|
---|
238 | >Instalace</H1
|
---|
239 | ><P
|
---|
240 | > In order to read and write images in jpeg format, you will need to
|
---|
241 | obtain and install jpeg-6b (available at
|
---|
242 | <A
|
---|
243 | HREF="ftp://ftp.uu.net/graphics/jpeg/"
|
---|
244 | TARGET="_top"
|
---|
245 | >ftp://ftp.uu.net/graphics/jpeg/</A
|
---|
246 | >), and then recompile
|
---|
247 | <SPAN
|
---|
248 | CLASS="acronym"
|
---|
249 | >GD</SPAN
|
---|
250 | > to make use of jpeg-6b. You will also have to
|
---|
251 | compile PHP with
|
---|
252 | <TT
|
---|
253 | CLASS="option"
|
---|
254 | >--with-jpeg-dir=/path/to/jpeg-6b</TT
|
---|
255 | >.
|
---|
256 | </P
|
---|
257 | ><P
|
---|
258 | > To add support for Type 1 fonts, you can install t1lib (available
|
---|
259 | at <A
|
---|
260 | HREF="ftp://sunsite.unc.edu/pub/Linux/libs/graphics/"
|
---|
261 | TARGET="_top"
|
---|
262 | >ftp://sunsite.unc.edu/pub/Linux/libs/graphics/</A
|
---|
263 | >), and then add
|
---|
264 | <TT
|
---|
265 | CLASS="option"
|
---|
266 | >--with-t1lib[=dir]</TT
|
---|
267 | >.
|
---|
268 | </P
|
---|
269 | ></DIV
|
---|
270 | ><DIV
|
---|
271 | CLASS="section"
|
---|
272 | ><H1
|
---|
273 | CLASS="section"
|
---|
274 | ><A
|
---|
275 | NAME="image.configuration"
|
---|
276 | ></A
|
---|
277 | >Konfigurace bìhu</H1
|
---|
278 | ><P
|
---|
279 | > Chování tìchto funkcí je ovlivnìno nastavením parametrù v <TT
|
---|
280 | CLASS="filename"
|
---|
281 | >php.ini</TT
|
---|
282 | >.
|
---|
283 | </P
|
---|
284 | ><P
|
---|
285 | > Exif supports automatically conversion for Unicode and JIS
|
---|
286 | character encodings of user comments when module
|
---|
287 | <A
|
---|
288 | HREF="ref.mbstring.html"
|
---|
289 | >mbstring</A
|
---|
290 | >
|
---|
291 | is available. This is done by first decoding the comment
|
---|
292 | using the specified characterset. The result is then encoded
|
---|
293 | with another characterset which should match your
|
---|
294 | <TT
|
---|
295 | CLASS="literal"
|
---|
296 | >HTTP</TT
|
---|
297 | > output.
|
---|
298 | <DIV
|
---|
299 | CLASS="table"
|
---|
300 | ><A
|
---|
301 | NAME="AEN29963"
|
---|
302 | ></A
|
---|
303 | ><P
|
---|
304 | ><B
|
---|
305 | >Tabulka 1. Exif configuration options</B
|
---|
306 | ></P
|
---|
307 | ><TABLE
|
---|
308 | BORDER="1"
|
---|
309 | CLASS="CALSTABLE"
|
---|
310 | ><THEAD
|
---|
311 | ><TR
|
---|
312 | ><TH
|
---|
313 | ALIGN="LEFT"
|
---|
314 | VALIGN="MIDDLE"
|
---|
315 | >Name</TH
|
---|
316 | ><TH
|
---|
317 | ALIGN="LEFT"
|
---|
318 | VALIGN="MIDDLE"
|
---|
319 | >Default</TH
|
---|
320 | ><TH
|
---|
321 | ALIGN="LEFT"
|
---|
322 | VALIGN="MIDDLE"
|
---|
323 | >Changeable</TH
|
---|
324 | ></TR
|
---|
325 | ></THEAD
|
---|
326 | ><TBODY
|
---|
327 | ><TR
|
---|
328 | ><TD
|
---|
329 | ALIGN="LEFT"
|
---|
330 | VALIGN="MIDDLE"
|
---|
331 | >exif.encode_unicode</TD
|
---|
332 | ><TD
|
---|
333 | ALIGN="LEFT"
|
---|
334 | VALIGN="MIDDLE"
|
---|
335 | >"ISO-8859-15"</TD
|
---|
336 | ><TD
|
---|
337 | ALIGN="LEFT"
|
---|
338 | VALIGN="MIDDLE"
|
---|
339 | >PHP_INI_ALL</TD
|
---|
340 | ></TR
|
---|
341 | ><TR
|
---|
342 | ><TD
|
---|
343 | ALIGN="LEFT"
|
---|
344 | VALIGN="MIDDLE"
|
---|
345 | >exif.decode_unicode_motorola</TD
|
---|
346 | ><TD
|
---|
347 | ALIGN="LEFT"
|
---|
348 | VALIGN="MIDDLE"
|
---|
349 | >"UCS-2BE"</TD
|
---|
350 | ><TD
|
---|
351 | ALIGN="LEFT"
|
---|
352 | VALIGN="MIDDLE"
|
---|
353 | >PHP_INI_ALL</TD
|
---|
354 | ></TR
|
---|
355 | ><TR
|
---|
356 | ><TD
|
---|
357 | ALIGN="LEFT"
|
---|
358 | VALIGN="MIDDLE"
|
---|
359 | >exif.decode_unicode_intel</TD
|
---|
360 | ><TD
|
---|
361 | ALIGN="LEFT"
|
---|
362 | VALIGN="MIDDLE"
|
---|
363 | >"UCS-2LE"</TD
|
---|
364 | ><TD
|
---|
365 | ALIGN="LEFT"
|
---|
366 | VALIGN="MIDDLE"
|
---|
367 | >PHP_INI_ALL</TD
|
---|
368 | ></TR
|
---|
369 | ><TR
|
---|
370 | ><TD
|
---|
371 | ALIGN="LEFT"
|
---|
372 | VALIGN="MIDDLE"
|
---|
373 | >exif.encode_jis</TD
|
---|
374 | ><TD
|
---|
375 | ALIGN="LEFT"
|
---|
376 | VALIGN="MIDDLE"
|
---|
377 | >""</TD
|
---|
378 | ><TD
|
---|
379 | ALIGN="LEFT"
|
---|
380 | VALIGN="MIDDLE"
|
---|
381 | >PHP_INI_ALL</TD
|
---|
382 | ></TR
|
---|
383 | ><TR
|
---|
384 | ><TD
|
---|
385 | ALIGN="LEFT"
|
---|
386 | VALIGN="MIDDLE"
|
---|
387 | >exif.decode_jis_motorola</TD
|
---|
388 | ><TD
|
---|
389 | ALIGN="LEFT"
|
---|
390 | VALIGN="MIDDLE"
|
---|
391 | >"JIS"</TD
|
---|
392 | ><TD
|
---|
393 | ALIGN="LEFT"
|
---|
394 | VALIGN="MIDDLE"
|
---|
395 | >PHP_INI_ALL</TD
|
---|
396 | ></TR
|
---|
397 | ><TR
|
---|
398 | ><TD
|
---|
399 | ALIGN="LEFT"
|
---|
400 | VALIGN="MIDDLE"
|
---|
401 | >exif.decode_jis_intel</TD
|
---|
402 | ><TD
|
---|
403 | ALIGN="LEFT"
|
---|
404 | VALIGN="MIDDLE"
|
---|
405 | >"JIS"</TD
|
---|
406 | ><TD
|
---|
407 | ALIGN="LEFT"
|
---|
408 | VALIGN="MIDDLE"
|
---|
409 | >PHP_INI_ALL</TD
|
---|
410 | ></TR
|
---|
411 | ></TBODY
|
---|
412 | ></TABLE
|
---|
413 | ></DIV
|
---|
414 | >
|
---|
415 | For further details and definition of the PHP_INI_* constants see
|
---|
416 | <A
|
---|
417 | HREF="function.ini-set.html"
|
---|
418 | ><B
|
---|
419 | CLASS="function"
|
---|
420 | >ini_set()</B
|
---|
421 | ></A
|
---|
422 | >.
|
---|
423 | </P
|
---|
424 | ><P
|
---|
425 | > Here is a short explanation of the configuration directives.
|
---|
426 | <P
|
---|
427 | ></P
|
---|
428 | ><DIV
|
---|
429 | CLASS="variablelist"
|
---|
430 | ><DL
|
---|
431 | ><DT
|
---|
432 | ><A
|
---|
433 | NAME="ini.exif.encode_unicode"
|
---|
434 | ></A
|
---|
435 | ><TT
|
---|
436 | CLASS="parameter"
|
---|
437 | ><I
|
---|
438 | >exif.encode_unicode</I
|
---|
439 | ></TT
|
---|
440 | >
|
---|
441 | <A
|
---|
442 | HREF="language.types.string.html"
|
---|
443 | ><B
|
---|
444 | CLASS="type"
|
---|
445 | >string</B
|
---|
446 | ></A
|
---|
447 | ></DT
|
---|
448 | ><DD
|
---|
449 | ><P
|
---|
450 | > <TT
|
---|
451 | CLASS="literal"
|
---|
452 | >exif.encode_unicode</TT
|
---|
453 | > defines the
|
---|
454 | characterset UNICODE user comments are handled.
|
---|
455 | This defaults to ISO-8859-15 which should work for
|
---|
456 | most non asian countries. The setting can be empty
|
---|
457 | or must be an encoding supported by mbstring. If it
|
---|
458 | is empty the current internal encoding of mbstring is
|
---|
459 | used.
|
---|
460 | </P
|
---|
461 | ></DD
|
---|
462 | ><DT
|
---|
463 | ><A
|
---|
464 | NAME="ini.exif.decode_unicode_motorola"
|
---|
465 | ></A
|
---|
466 | ><TT
|
---|
467 | CLASS="parameter"
|
---|
468 | ><I
|
---|
469 | >exif.decode_unicode_motorola</I
|
---|
470 | ></TT
|
---|
471 | >
|
---|
472 | <A
|
---|
473 | HREF="language.types.string.html"
|
---|
474 | ><B
|
---|
475 | CLASS="type"
|
---|
476 | >string</B
|
---|
477 | ></A
|
---|
478 | ></DT
|
---|
479 | ><DD
|
---|
480 | ><P
|
---|
481 | > <TT
|
---|
482 | CLASS="literal"
|
---|
483 | >exif.decode_unicode_motorola</TT
|
---|
484 | > defines
|
---|
485 | the image internal characterset for Unicode encoded user
|
---|
486 | comments if image is in motorola byte order (big-endian).
|
---|
487 | This setting cannot be empty but you can specify a list
|
---|
488 | of encodings supported by mbstring. The default is UCS-2BE.
|
---|
489 | </P
|
---|
490 | ></DD
|
---|
491 | ><DT
|
---|
492 | ><A
|
---|
493 | NAME="ini.exif.decode_unicode_intel"
|
---|
494 | ></A
|
---|
495 | ><TT
|
---|
496 | CLASS="parameter"
|
---|
497 | ><I
|
---|
498 | >exif.decode_unicode_intel</I
|
---|
499 | ></TT
|
---|
500 | >
|
---|
501 | <A
|
---|
502 | HREF="language.types.string.html"
|
---|
503 | ><B
|
---|
504 | CLASS="type"
|
---|
505 | >string</B
|
---|
506 | ></A
|
---|
507 | ></DT
|
---|
508 | ><DD
|
---|
509 | ><P
|
---|
510 | > <TT
|
---|
511 | CLASS="literal"
|
---|
512 | >exif.decode_unicode_intel</TT
|
---|
513 | > defines
|
---|
514 | the image internal characterset for Unicode encoded user
|
---|
515 | comments if image is in intel byte order (little-endian).
|
---|
516 | This setting cannot be empty but you can specify a list
|
---|
517 | of encodings supported by mbstring. The default is UCS-2LE.
|
---|
518 | </P
|
---|
519 | ></DD
|
---|
520 | ><DT
|
---|
521 | ><A
|
---|
522 | NAME="ini.exif.encode_jis"
|
---|
523 | ></A
|
---|
524 | ><TT
|
---|
525 | CLASS="parameter"
|
---|
526 | ><I
|
---|
527 | >exif.encode_jis</I
|
---|
528 | ></TT
|
---|
529 | >
|
---|
530 | <A
|
---|
531 | HREF="language.types.string.html"
|
---|
532 | ><B
|
---|
533 | CLASS="type"
|
---|
534 | >string</B
|
---|
535 | ></A
|
---|
536 | ></DT
|
---|
537 | ><DD
|
---|
538 | ><P
|
---|
539 | > <TT
|
---|
540 | CLASS="literal"
|
---|
541 | >exif.encode_jis</TT
|
---|
542 | > defines the
|
---|
543 | characterset JIS user comments are handled.
|
---|
544 | This defaults to an empty value which forces
|
---|
545 | the functions to use the current internal encoding
|
---|
546 | of mbstring.
|
---|
547 | </P
|
---|
548 | ></DD
|
---|
549 | ><DT
|
---|
550 | ><A
|
---|
551 | NAME="ini.exif.decode_jis_motorola"
|
---|
552 | ></A
|
---|
553 | ><TT
|
---|
554 | CLASS="parameter"
|
---|
555 | ><I
|
---|
556 | >exif.decode_jis_motorola</I
|
---|
557 | ></TT
|
---|
558 | >
|
---|
559 | <A
|
---|
560 | HREF="language.types.string.html"
|
---|
561 | ><B
|
---|
562 | CLASS="type"
|
---|
563 | >string</B
|
---|
564 | ></A
|
---|
565 | ></DT
|
---|
566 | ><DD
|
---|
567 | ><P
|
---|
568 | > <TT
|
---|
569 | CLASS="literal"
|
---|
570 | >exif.decode_jis_motorola</TT
|
---|
571 | > defines
|
---|
572 | the image internal characterset for JIS encoded user
|
---|
573 | comments if image is in motorola byte order (big-endian).
|
---|
574 | This setting cannot be empty but you can specify a list
|
---|
575 | of encodings supported by mbstring. The default is JIS.
|
---|
576 | </P
|
---|
577 | ></DD
|
---|
578 | ><DT
|
---|
579 | ><A
|
---|
580 | NAME="ini.exif.decode_jis_intel"
|
---|
581 | ></A
|
---|
582 | ><TT
|
---|
583 | CLASS="parameter"
|
---|
584 | ><I
|
---|
585 | >exif.decode_jis_intel</I
|
---|
586 | ></TT
|
---|
587 | >
|
---|
588 | <A
|
---|
589 | HREF="language.types.string.html"
|
---|
590 | ><B
|
---|
591 | CLASS="type"
|
---|
592 | >string</B
|
---|
593 | ></A
|
---|
594 | ></DT
|
---|
595 | ><DD
|
---|
596 | ><P
|
---|
597 | > <TT
|
---|
598 | CLASS="literal"
|
---|
599 | >exif.decode_jis_intel</TT
|
---|
600 | > defines
|
---|
601 | the image internal characterset for JIS encoded user
|
---|
602 | comments if image is in intel byte order (little-endian).
|
---|
603 | This setting cannot be empty but you can specify a list
|
---|
604 | of encodings supported by mbstring. The default is JIS.
|
---|
605 | </P
|
---|
606 | ></DD
|
---|
607 | ></DL
|
---|
608 | ></DIV
|
---|
609 | >
|
---|
610 | </P
|
---|
611 | ></DIV
|
---|
612 | ><DIV
|
---|
613 | CLASS="section"
|
---|
614 | ><H1
|
---|
615 | CLASS="section"
|
---|
616 | ><A
|
---|
617 | NAME="image.resources"
|
---|
618 | ></A
|
---|
619 | >Typy prostøedkù</H1
|
---|
620 | ><P
|
---|
621 | >Toto roz¹íøení nemá definován ¾ádný typ prostøedku
|
---|
622 | (resource).</P
|
---|
623 | ></DIV
|
---|
624 | ><DIV
|
---|
625 | CLASS="section"
|
---|
626 | ><H1
|
---|
627 | CLASS="section"
|
---|
628 | ><A
|
---|
629 | NAME="image.constants"
|
---|
630 | ></A
|
---|
631 | >Pøeddefinované konstanty</H1
|
---|
632 | ><P
|
---|
633 | > Tyto konstanty jsou definovány tímto roz¹íøením a budou k dispozici pouze
|
---|
634 | tehdy, bylo-li roz¹íøení zkompilováno spoleènì s PHP nebo dynamicky zavedeno
|
---|
635 | za bìhu.
|
---|
636 | </P
|
---|
637 | ><P
|
---|
638 | ></P
|
---|
639 | ><DIV
|
---|
640 | CLASS="variablelist"
|
---|
641 | ><DL
|
---|
642 | ><DT
|
---|
643 | ><TT
|
---|
644 | CLASS="constant"
|
---|
645 | ><B
|
---|
646 | >IMG_GIF</B
|
---|
647 | ></TT
|
---|
648 | >
|
---|
649 | (<A
|
---|
650 | HREF="language.types.integer.html"
|
---|
651 | >integer</A
|
---|
652 | >)</DT
|
---|
653 | ><DD
|
---|
654 | ><P
|
---|
655 | >
|
---|
656 | </P
|
---|
657 | ></DD
|
---|
658 | ><DT
|
---|
659 | ><TT
|
---|
660 | CLASS="constant"
|
---|
661 | ><B
|
---|
662 | >IMG_JPG</B
|
---|
663 | ></TT
|
---|
664 | >
|
---|
665 | (<A
|
---|
666 | HREF="language.types.integer.html"
|
---|
667 | >integer</A
|
---|
668 | >)</DT
|
---|
669 | ><DD
|
---|
670 | ><P
|
---|
671 | >
|
---|
672 | </P
|
---|
673 | ></DD
|
---|
674 | ><DT
|
---|
675 | ><TT
|
---|
676 | CLASS="constant"
|
---|
677 | ><B
|
---|
678 | >IMG_JPEG</B
|
---|
679 | ></TT
|
---|
680 | >
|
---|
681 | (<A
|
---|
682 | HREF="language.types.integer.html"
|
---|
683 | >integer</A
|
---|
684 | >)</DT
|
---|
685 | ><DD
|
---|
686 | ><P
|
---|
687 | >
|
---|
688 | </P
|
---|
689 | ></DD
|
---|
690 | ><DT
|
---|
691 | ><TT
|
---|
692 | CLASS="constant"
|
---|
693 | ><B
|
---|
694 | >IMG_PNG</B
|
---|
695 | ></TT
|
---|
696 | >
|
---|
697 | (<A
|
---|
698 | HREF="language.types.integer.html"
|
---|
699 | >integer</A
|
---|
700 | >)</DT
|
---|
701 | ><DD
|
---|
702 | ><P
|
---|
703 | >
|
---|
704 | </P
|
---|
705 | ></DD
|
---|
706 | ><DT
|
---|
707 | ><TT
|
---|
708 | CLASS="constant"
|
---|
709 | ><B
|
---|
710 | >IMG_WBMP</B
|
---|
711 | ></TT
|
---|
712 | >
|
---|
713 | (<A
|
---|
714 | HREF="language.types.integer.html"
|
---|
715 | >integer</A
|
---|
716 | >)</DT
|
---|
717 | ><DD
|
---|
718 | ><P
|
---|
719 | >
|
---|
720 | </P
|
---|
721 | ></DD
|
---|
722 | ><DT
|
---|
723 | ><TT
|
---|
724 | CLASS="constant"
|
---|
725 | ><B
|
---|
726 | >IMG_XPM</B
|
---|
727 | ></TT
|
---|
728 | >
|
---|
729 | (<A
|
---|
730 | HREF="language.types.integer.html"
|
---|
731 | >integer</A
|
---|
732 | >)</DT
|
---|
733 | ><DD
|
---|
734 | ><P
|
---|
735 | >
|
---|
736 | </P
|
---|
737 | ></DD
|
---|
738 | ><DT
|
---|
739 | ><TT
|
---|
740 | CLASS="constant"
|
---|
741 | ><B
|
---|
742 | >IMG_COLOR_TILED</B
|
---|
743 | ></TT
|
---|
744 | >
|
---|
745 | (<A
|
---|
746 | HREF="language.types.integer.html"
|
---|
747 | >integer</A
|
---|
748 | >)</DT
|
---|
749 | ><DD
|
---|
750 | ><P
|
---|
751 | >
|
---|
752 | </P
|
---|
753 | ></DD
|
---|
754 | ><DT
|
---|
755 | ><TT
|
---|
756 | CLASS="constant"
|
---|
757 | ><B
|
---|
758 | >IMG_COLOR_STYLED</B
|
---|
759 | ></TT
|
---|
760 | >
|
---|
761 | (<A
|
---|
762 | HREF="language.types.integer.html"
|
---|
763 | >integer</A
|
---|
764 | >)</DT
|
---|
765 | ><DD
|
---|
766 | ><P
|
---|
767 | >
|
---|
768 | </P
|
---|
769 | ></DD
|
---|
770 | ><DT
|
---|
771 | ><TT
|
---|
772 | CLASS="constant"
|
---|
773 | ><B
|
---|
774 | >IMG_COLOR_BRUSHED</B
|
---|
775 | ></TT
|
---|
776 | >
|
---|
777 | (<A
|
---|
778 | HREF="language.types.integer.html"
|
---|
779 | >integer</A
|
---|
780 | >)</DT
|
---|
781 | ><DD
|
---|
782 | ><P
|
---|
783 | >
|
---|
784 | </P
|
---|
785 | ></DD
|
---|
786 | ><DT
|
---|
787 | ><TT
|
---|
788 | CLASS="constant"
|
---|
789 | ><B
|
---|
790 | >IMG_COLOR_STYLEDBRUSHED</B
|
---|
791 | ></TT
|
---|
792 | >
|
---|
793 | (<A
|
---|
794 | HREF="language.types.integer.html"
|
---|
795 | >integer</A
|
---|
796 | >)</DT
|
---|
797 | ><DD
|
---|
798 | ><P
|
---|
799 | >
|
---|
800 | </P
|
---|
801 | ></DD
|
---|
802 | ><DT
|
---|
803 | ><TT
|
---|
804 | CLASS="constant"
|
---|
805 | ><B
|
---|
806 | >IMG_COLOR_TRANSPARENT</B
|
---|
807 | ></TT
|
---|
808 | >
|
---|
809 | (<A
|
---|
810 | HREF="language.types.integer.html"
|
---|
811 | >integer</A
|
---|
812 | >)</DT
|
---|
813 | ><DD
|
---|
814 | ><P
|
---|
815 | >
|
---|
816 | </P
|
---|
817 | ></DD
|
---|
818 | ><DT
|
---|
819 | ><TT
|
---|
820 | CLASS="constant"
|
---|
821 | ><B
|
---|
822 | >IMG_ARC_ROUNDED</B
|
---|
823 | ></TT
|
---|
824 | >
|
---|
825 | (<A
|
---|
826 | HREF="language.types.integer.html"
|
---|
827 | >integer</A
|
---|
828 | >)</DT
|
---|
829 | ><DD
|
---|
830 | ><P
|
---|
831 | >
|
---|
832 | </P
|
---|
833 | ></DD
|
---|
834 | ><DT
|
---|
835 | ><TT
|
---|
836 | CLASS="constant"
|
---|
837 | ><B
|
---|
838 | >IMG_ARC_PIE</B
|
---|
839 | ></TT
|
---|
840 | >
|
---|
841 | (<A
|
---|
842 | HREF="language.types.integer.html"
|
---|
843 | >integer</A
|
---|
844 | >)</DT
|
---|
845 | ><DD
|
---|
846 | ><P
|
---|
847 | >
|
---|
848 | </P
|
---|
849 | ></DD
|
---|
850 | ><DT
|
---|
851 | ><TT
|
---|
852 | CLASS="constant"
|
---|
853 | ><B
|
---|
854 | >IMG_ARC_CHORD</B
|
---|
855 | ></TT
|
---|
856 | >
|
---|
857 | (<A
|
---|
858 | HREF="language.types.integer.html"
|
---|
859 | >integer</A
|
---|
860 | >)</DT
|
---|
861 | ><DD
|
---|
862 | ><P
|
---|
863 | >
|
---|
864 | </P
|
---|
865 | ></DD
|
---|
866 | ><DT
|
---|
867 | ><TT
|
---|
868 | CLASS="constant"
|
---|
869 | ><B
|
---|
870 | >IMG_ARC_NOFILL</B
|
---|
871 | ></TT
|
---|
872 | >
|
---|
873 | (<A
|
---|
874 | HREF="language.types.integer.html"
|
---|
875 | >integer</A
|
---|
876 | >)</DT
|
---|
877 | ><DD
|
---|
878 | ><P
|
---|
879 | >
|
---|
880 | </P
|
---|
881 | ></DD
|
---|
882 | ><DT
|
---|
883 | ><TT
|
---|
884 | CLASS="constant"
|
---|
885 | ><B
|
---|
886 | >IMG_ARC_EDGED</B
|
---|
887 | ></TT
|
---|
888 | >
|
---|
889 | (<A
|
---|
890 | HREF="language.types.integer.html"
|
---|
891 | >integer</A
|
---|
892 | >)</DT
|
---|
893 | ><DD
|
---|
894 | ><P
|
---|
895 | >
|
---|
896 | </P
|
---|
897 | ></DD
|
---|
898 | ><DT
|
---|
899 | ><TT
|
---|
900 | CLASS="constant"
|
---|
901 | ><B
|
---|
902 | >IMAGETYPE_GIF</B
|
---|
903 | ></TT
|
---|
904 | >
|
---|
905 | (<A
|
---|
906 | HREF="language.types.integer.html"
|
---|
907 | >integer</A
|
---|
908 | >)</DT
|
---|
909 | ><DD
|
---|
910 | ><P
|
---|
911 | >
|
---|
912 | </P
|
---|
913 | ></DD
|
---|
914 | ><DT
|
---|
915 | ><TT
|
---|
916 | CLASS="constant"
|
---|
917 | ><B
|
---|
918 | >IMAGETYPE_JPG</B
|
---|
919 | ></TT
|
---|
920 | >
|
---|
921 | (<A
|
---|
922 | HREF="language.types.integer.html"
|
---|
923 | >integer</A
|
---|
924 | >)</DT
|
---|
925 | ><DD
|
---|
926 | ><P
|
---|
927 | >
|
---|
928 | </P
|
---|
929 | ></DD
|
---|
930 | ><DT
|
---|
931 | ><TT
|
---|
932 | CLASS="constant"
|
---|
933 | ><B
|
---|
934 | >IMAGETYPE_PNG</B
|
---|
935 | ></TT
|
---|
936 | >
|
---|
937 | (<A
|
---|
938 | HREF="language.types.integer.html"
|
---|
939 | >integer</A
|
---|
940 | >)</DT
|
---|
941 | ><DD
|
---|
942 | ><P
|
---|
943 | >
|
---|
944 | </P
|
---|
945 | ></DD
|
---|
946 | ><DT
|
---|
947 | ><TT
|
---|
948 | CLASS="constant"
|
---|
949 | ><B
|
---|
950 | >IMAGETYPE_SWF</B
|
---|
951 | ></TT
|
---|
952 | >
|
---|
953 | (<A
|
---|
954 | HREF="language.types.integer.html"
|
---|
955 | >integer</A
|
---|
956 | >)</DT
|
---|
957 | ><DD
|
---|
958 | ><P
|
---|
959 | >
|
---|
960 | </P
|
---|
961 | ></DD
|
---|
962 | ><DT
|
---|
963 | ><TT
|
---|
964 | CLASS="constant"
|
---|
965 | ><B
|
---|
966 | >IMAGETYPE_PSD</B
|
---|
967 | ></TT
|
---|
968 | >
|
---|
969 | (<A
|
---|
970 | HREF="language.types.integer.html"
|
---|
971 | >integer</A
|
---|
972 | >)</DT
|
---|
973 | ><DD
|
---|
974 | ><P
|
---|
975 | >
|
---|
976 | </P
|
---|
977 | ></DD
|
---|
978 | ><DT
|
---|
979 | ><TT
|
---|
980 | CLASS="constant"
|
---|
981 | ><B
|
---|
982 | >IMAGETYPE_BMP</B
|
---|
983 | ></TT
|
---|
984 | >
|
---|
985 | (<A
|
---|
986 | HREF="language.types.integer.html"
|
---|
987 | >integer</A
|
---|
988 | >)</DT
|
---|
989 | ><DD
|
---|
990 | ><P
|
---|
991 | >
|
---|
992 | </P
|
---|
993 | ></DD
|
---|
994 | ><DT
|
---|
995 | ><TT
|
---|
996 | CLASS="constant"
|
---|
997 | ><B
|
---|
998 | >IMAGETYPE_TIFF_II</B
|
---|
999 | ></TT
|
---|
1000 | >
|
---|
1001 | (<A
|
---|
1002 | HREF="language.types.integer.html"
|
---|
1003 | >integer</A
|
---|
1004 | >)</DT
|
---|
1005 | ><DD
|
---|
1006 | ><P
|
---|
1007 | >
|
---|
1008 | </P
|
---|
1009 | ></DD
|
---|
1010 | ><DT
|
---|
1011 | ><TT
|
---|
1012 | CLASS="constant"
|
---|
1013 | ><B
|
---|
1014 | >IMAGETYPE_TIFF_MM</B
|
---|
1015 | ></TT
|
---|
1016 | >
|
---|
1017 | (<A
|
---|
1018 | HREF="language.types.integer.html"
|
---|
1019 | >integer</A
|
---|
1020 | >)</DT
|
---|
1021 | ><DD
|
---|
1022 | ><P
|
---|
1023 | >
|
---|
1024 | </P
|
---|
1025 | ></DD
|
---|
1026 | ><DT
|
---|
1027 | ><TT
|
---|
1028 | CLASS="constant"
|
---|
1029 | ><B
|
---|
1030 | >IMAGETYPE_JPC</B
|
---|
1031 | ></TT
|
---|
1032 | >
|
---|
1033 | (<A
|
---|
1034 | HREF="language.types.integer.html"
|
---|
1035 | >integer</A
|
---|
1036 | >)</DT
|
---|
1037 | ><DD
|
---|
1038 | ><P
|
---|
1039 | >
|
---|
1040 | </P
|
---|
1041 | ></DD
|
---|
1042 | ><DT
|
---|
1043 | ><TT
|
---|
1044 | CLASS="constant"
|
---|
1045 | ><B
|
---|
1046 | >IMAGETYPE_JP2</B
|
---|
1047 | ></TT
|
---|
1048 | >
|
---|
1049 | (<A
|
---|
1050 | HREF="language.types.integer.html"
|
---|
1051 | >integer</A
|
---|
1052 | >)</DT
|
---|
1053 | ><DD
|
---|
1054 | ><P
|
---|
1055 | >
|
---|
1056 | </P
|
---|
1057 | ></DD
|
---|
1058 | ><DT
|
---|
1059 | ><TT
|
---|
1060 | CLASS="constant"
|
---|
1061 | ><B
|
---|
1062 | >IMAGETYPE_JPX</B
|
---|
1063 | ></TT
|
---|
1064 | >
|
---|
1065 | (<A
|
---|
1066 | HREF="language.types.integer.html"
|
---|
1067 | >integer</A
|
---|
1068 | >)</DT
|
---|
1069 | ><DD
|
---|
1070 | ><P
|
---|
1071 | >
|
---|
1072 | </P
|
---|
1073 | ></DD
|
---|
1074 | ><DT
|
---|
1075 | ><TT
|
---|
1076 | CLASS="constant"
|
---|
1077 | ><B
|
---|
1078 | >IMAGETYPE_SWC</B
|
---|
1079 | ></TT
|
---|
1080 | >
|
---|
1081 | (<A
|
---|
1082 | HREF="language.types.integer.html"
|
---|
1083 | >integer</A
|
---|
1084 | >)</DT
|
---|
1085 | ><DD
|
---|
1086 | ><P
|
---|
1087 | >
|
---|
1088 | </P
|
---|
1089 | ></DD
|
---|
1090 | ></DL
|
---|
1091 | ></DIV
|
---|
1092 | ></DIV
|
---|
1093 | ><DIV
|
---|
1094 | CLASS="section"
|
---|
1095 | ><H1
|
---|
1096 | CLASS="section"
|
---|
1097 | ><A
|
---|
1098 | NAME="image.examples"
|
---|
1099 | ></A
|
---|
1100 | >Pøíklady</H1
|
---|
1101 | ><P
|
---|
1102 | > <TABLE
|
---|
1103 | WIDTH="100%"
|
---|
1104 | BORDER="0"
|
---|
1105 | CELLPADDING="0"
|
---|
1106 | CELLSPACING="0"
|
---|
1107 | CLASS="EXAMPLE"
|
---|
1108 | ><TR
|
---|
1109 | ><TD
|
---|
1110 | ><DIV
|
---|
1111 | CLASS="example"
|
---|
1112 | ><A
|
---|
1113 | NAME="AEN30219"
|
---|
1114 | ></A
|
---|
1115 | ><P
|
---|
1116 | ><B
|
---|
1117 | >Pøíklad 1. PNG creation with PHP</B
|
---|
1118 | ></P
|
---|
1119 | ><TABLE
|
---|
1120 | BORDER="0"
|
---|
1121 | BGCOLOR="#E0E0E0"
|
---|
1122 | CELLPADDING="5"
|
---|
1123 | ><TR
|
---|
1124 | ><TD
|
---|
1125 | ><PRE
|
---|
1126 | CLASS="php"
|
---|
1127 | ><?php
|
---|
1128 | header("Content-type: image/png");
|
---|
1129 | $string = $_GET['text'];
|
---|
1130 | $im = imagecreatefrompng("images/button1.png");
|
---|
1131 | $orange = imagecolorallocate($im, 220, 210, 60);
|
---|
1132 | $px = (imagesx($im) - 7.5 * strlen($string)) / 2;
|
---|
1133 | imagestring($im, 3, $px, 9, $string, $orange);
|
---|
1134 | imagepng($im);
|
---|
1135 | imagedestroy($im);
|
---|
1136 | ?></PRE
|
---|
1137 | ></TD
|
---|
1138 | ></TR
|
---|
1139 | ></TABLE
|
---|
1140 | ></DIV
|
---|
1141 | ></TD
|
---|
1142 | ></TR
|
---|
1143 | ></TABLE
|
---|
1144 | >
|
---|
1145 | This example would be called from a page with a tag like: <img
|
---|
1146 | src="button.php?text">. The above button.php script
|
---|
1147 | then takes this "text" string and overlays it on top of a
|
---|
1148 | base image which in this case is "images/button1.png"
|
---|
1149 | and outputs the resulting image. This is a very convenient way to
|
---|
1150 | avoid having to draw new button images every time you want to
|
---|
1151 | change the text of a button. With this method they are
|
---|
1152 | dynamically generated.
|
---|
1153 | </P
|
---|
1154 | ></DIV
|
---|
1155 | ></DIV
|
---|
1156 | ><DIV
|
---|
1157 | CLASS="TOC"
|
---|
1158 | ><DL
|
---|
1159 | ><DT
|
---|
1160 | ><B
|
---|
1161 | >Obsah</B
|
---|
1162 | ></DT
|
---|
1163 | ><DT
|
---|
1164 | ><A
|
---|
1165 | HREF="function.exif-imagetype.html"
|
---|
1166 | >exif_imagetype</A
|
---|
1167 | > -- Determine the type of an image</DT
|
---|
1168 | ><DT
|
---|
1169 | ><A
|
---|
1170 | HREF="function.exif-read-data.html"
|
---|
1171 | >exif_read_data</A
|
---|
1172 | > -- Read the <SPAN
|
---|
1173 | CLASS="acronym"
|
---|
1174 | >EXIF</SPAN
|
---|
1175 | > headers from <SPAN
|
---|
1176 | CLASS="acronym"
|
---|
1177 | >JPEG</SPAN
|
---|
1178 | >
|
---|
1179 | or <SPAN
|
---|
1180 | CLASS="acronym"
|
---|
1181 | >TIFF</SPAN
|
---|
1182 | >. This way you can read meta data generated by digital
|
---|
1183 | cameras.</DT
|
---|
1184 | ><DT
|
---|
1185 | ><A
|
---|
1186 | HREF="function.exif-thumbnail.html"
|
---|
1187 | >exif_thumbnail</A
|
---|
1188 | > -- Retrieve the embedded thumbnail of a TIFF or JPEG image</DT
|
---|
1189 | ><DT
|
---|
1190 | ><A
|
---|
1191 | HREF="function.getimagesize.html"
|
---|
1192 | >getimagesize</A
|
---|
1193 | > -- Get the size of an image</DT
|
---|
1194 | ><DT
|
---|
1195 | ><A
|
---|
1196 | HREF="function.image-type-to-mime-type.html"
|
---|
1197 | >image_type_to_mime_type</A
|
---|
1198 | > -- Get Mime-Type for image-type returned by getimagesize,
|
---|
1199 | exif_read_data, exif_thumbnail, exif_imagetype</DT
|
---|
1200 | ><DT
|
---|
1201 | ><A
|
---|
1202 | HREF="function.image2wbmp.html"
|
---|
1203 | >image2wbmp</A
|
---|
1204 | > -- Output image to browser or file</DT
|
---|
1205 | ><DT
|
---|
1206 | ><A
|
---|
1207 | HREF="function.imagealphablending.html"
|
---|
1208 | >imagealphablending</A
|
---|
1209 | > -- Set the blending mode for an image</DT
|
---|
1210 | ><DT
|
---|
1211 | ><A
|
---|
1212 | HREF="function.imagearc.html"
|
---|
1213 | >imagearc</A
|
---|
1214 | > -- Draw a partial ellipse</DT
|
---|
1215 | ><DT
|
---|
1216 | ><A
|
---|
1217 | HREF="function.imagechar.html"
|
---|
1218 | >imagechar</A
|
---|
1219 | > -- Draw a character horizontally</DT
|
---|
1220 | ><DT
|
---|
1221 | ><A
|
---|
1222 | HREF="function.imagecharup.html"
|
---|
1223 | >imagecharup</A
|
---|
1224 | > -- Draw a character vertically</DT
|
---|
1225 | ><DT
|
---|
1226 | ><A
|
---|
1227 | HREF="function.imagecolorallocate.html"
|
---|
1228 | >imagecolorallocate</A
|
---|
1229 | > -- Allocate a color for an image</DT
|
---|
1230 | ><DT
|
---|
1231 | ><A
|
---|
1232 | HREF="function.imagecolorat.html"
|
---|
1233 | >imagecolorat</A
|
---|
1234 | > -- Get the index of the color of a pixel</DT
|
---|
1235 | ><DT
|
---|
1236 | ><A
|
---|
1237 | HREF="function.imagecolorclosest.html"
|
---|
1238 | >imagecolorclosest</A
|
---|
1239 | > -- Get the index of the closest color to the specified color</DT
|
---|
1240 | ><DT
|
---|
1241 | ><A
|
---|
1242 | HREF="function.imagecolorclosestalpha.html"
|
---|
1243 | >imagecolorclosestalpha</A
|
---|
1244 | > -- Get the index of the closest color to the specified color + alpha</DT
|
---|
1245 | ><DT
|
---|
1246 | ><A
|
---|
1247 | HREF="function.imagecolorclosesthwb.html"
|
---|
1248 | >imagecolorclosesthwb</A
|
---|
1249 | > --
|
---|
1250 | Get the index of the color which has the hue, white and blackness nearest to the given color
|
---|
1251 | </DT
|
---|
1252 | ><DT
|
---|
1253 | ><A
|
---|
1254 | HREF="function.imagecolordeallocate.html"
|
---|
1255 | >imagecolordeallocate</A
|
---|
1256 | > -- De-allocate a color for an image</DT
|
---|
1257 | ><DT
|
---|
1258 | ><A
|
---|
1259 | HREF="function.imagecolorexact.html"
|
---|
1260 | >imagecolorexact</A
|
---|
1261 | > -- Get the index of the specified color</DT
|
---|
1262 | ><DT
|
---|
1263 | ><A
|
---|
1264 | HREF="function.imagecolorexactalpha.html"
|
---|
1265 | >imagecolorexactalpha</A
|
---|
1266 | > -- Get the index of the specified color + alpha</DT
|
---|
1267 | ><DT
|
---|
1268 | ><A
|
---|
1269 | HREF="function.imagecolorresolve.html"
|
---|
1270 | >imagecolorresolve</A
|
---|
1271 | > --
|
---|
1272 | Get the index of the specified color or its closest possible
|
---|
1273 | alternative
|
---|
1274 | </DT
|
---|
1275 | ><DT
|
---|
1276 | ><A
|
---|
1277 | HREF="function.imagecolorresolvealpha.html"
|
---|
1278 | >imagecolorresolvealpha</A
|
---|
1279 | > --
|
---|
1280 | Get the index of the specified color + alpha or its closest possible
|
---|
1281 | alternative
|
---|
1282 | </DT
|
---|
1283 | ><DT
|
---|
1284 | ><A
|
---|
1285 | HREF="function.imagecolorset.html"
|
---|
1286 | >imagecolorset</A
|
---|
1287 | > -- Set the color for the specified palette index</DT
|
---|
1288 | ><DT
|
---|
1289 | ><A
|
---|
1290 | HREF="function.imagecolorsforindex.html"
|
---|
1291 | >imagecolorsforindex</A
|
---|
1292 | > -- Get the colors for an index</DT
|
---|
1293 | ><DT
|
---|
1294 | ><A
|
---|
1295 | HREF="function.imagecolorstotal.html"
|
---|
1296 | >imagecolorstotal</A
|
---|
1297 | > -- Find out the number of colors in an image's palette</DT
|
---|
1298 | ><DT
|
---|
1299 | ><A
|
---|
1300 | HREF="function.imagecolortransparent.html"
|
---|
1301 | >imagecolortransparent</A
|
---|
1302 | > -- Define a color as transparent</DT
|
---|
1303 | ><DT
|
---|
1304 | ><A
|
---|
1305 | HREF="function.imagecopy.html"
|
---|
1306 | >imagecopy</A
|
---|
1307 | > -- Copy part of an image</DT
|
---|
1308 | ><DT
|
---|
1309 | ><A
|
---|
1310 | HREF="function.imagecopymerge.html"
|
---|
1311 | >imagecopymerge</A
|
---|
1312 | > -- Copy and merge part of an image</DT
|
---|
1313 | ><DT
|
---|
1314 | ><A
|
---|
1315 | HREF="function.imagecopymergegray.html"
|
---|
1316 | >imagecopymergegray</A
|
---|
1317 | > -- Copy and merge part of an image with gray scale</DT
|
---|
1318 | ><DT
|
---|
1319 | ><A
|
---|
1320 | HREF="function.imagecopyresampled.html"
|
---|
1321 | >imagecopyresampled</A
|
---|
1322 | > -- Copy and resize part of an image with resampling</DT
|
---|
1323 | ><DT
|
---|
1324 | ><A
|
---|
1325 | HREF="function.imagecopyresized.html"
|
---|
1326 | >imagecopyresized</A
|
---|
1327 | > -- Copy and resize part of an image</DT
|
---|
1328 | ><DT
|
---|
1329 | ><A
|
---|
1330 | HREF="function.imagecreate.html"
|
---|
1331 | >imagecreate</A
|
---|
1332 | > -- Create a new palette based image</DT
|
---|
1333 | ><DT
|
---|
1334 | ><A
|
---|
1335 | HREF="function.imagecreatefromgd2.html"
|
---|
1336 | >imagecreatefromgd2</A
|
---|
1337 | > -- Create a new image from GD2 file or URL</DT
|
---|
1338 | ><DT
|
---|
1339 | ><A
|
---|
1340 | HREF="function.imagecreatefromgd2part.html"
|
---|
1341 | >imagecreatefromgd2part</A
|
---|
1342 | > -- Create a new image from a given part of GD2 file or URL</DT
|
---|
1343 | ><DT
|
---|
1344 | ><A
|
---|
1345 | HREF="function.imagecreatefromgd.html"
|
---|
1346 | >imagecreatefromgd</A
|
---|
1347 | > -- Create a new image from GD file or URL</DT
|
---|
1348 | ><DT
|
---|
1349 | ><A
|
---|
1350 | HREF="function.imagecreatefromgif.html"
|
---|
1351 | >imagecreatefromgif</A
|
---|
1352 | > -- Create a new image from file or URL</DT
|
---|
1353 | ><DT
|
---|
1354 | ><A
|
---|
1355 | HREF="function.imagecreatefromjpeg.html"
|
---|
1356 | >imagecreatefromjpeg</A
|
---|
1357 | > -- Create a new image from file or URL</DT
|
---|
1358 | ><DT
|
---|
1359 | ><A
|
---|
1360 | HREF="function.imagecreatefrompng.html"
|
---|
1361 | >imagecreatefrompng</A
|
---|
1362 | > -- Create a new image from file or URL</DT
|
---|
1363 | ><DT
|
---|
1364 | ><A
|
---|
1365 | HREF="function.imagecreatefromstring.html"
|
---|
1366 | >imagecreatefromstring</A
|
---|
1367 | > -- Create a new image from the image stream in the string</DT
|
---|
1368 | ><DT
|
---|
1369 | ><A
|
---|
1370 | HREF="function.imagecreatefromwbmp.html"
|
---|
1371 | >imagecreatefromwbmp</A
|
---|
1372 | > -- Create a new image from file or URL</DT
|
---|
1373 | ><DT
|
---|
1374 | ><A
|
---|
1375 | HREF="function.imagecreatefromxbm.html"
|
---|
1376 | >imagecreatefromxbm</A
|
---|
1377 | > -- Create a new image from file or URL</DT
|
---|
1378 | ><DT
|
---|
1379 | ><A
|
---|
1380 | HREF="function.imagecreatefromxpm.html"
|
---|
1381 | >imagecreatefromxpm</A
|
---|
1382 | > -- Create a new image from file or URL</DT
|
---|
1383 | ><DT
|
---|
1384 | ><A
|
---|
1385 | HREF="function.imagecreatetruecolor.html"
|
---|
1386 | >imagecreatetruecolor</A
|
---|
1387 | > -- Create a new true color image</DT
|
---|
1388 | ><DT
|
---|
1389 | ><A
|
---|
1390 | HREF="function.imagedashedline.html"
|
---|
1391 | >imagedashedline</A
|
---|
1392 | > -- Draw a dashed line</DT
|
---|
1393 | ><DT
|
---|
1394 | ><A
|
---|
1395 | HREF="function.imagedestroy.html"
|
---|
1396 | >imagedestroy</A
|
---|
1397 | > -- Destroy an image</DT
|
---|
1398 | ><DT
|
---|
1399 | ><A
|
---|
1400 | HREF="function.imageellipse.html"
|
---|
1401 | >imageellipse</A
|
---|
1402 | > -- Draw an ellipse</DT
|
---|
1403 | ><DT
|
---|
1404 | ><A
|
---|
1405 | HREF="function.imagefill.html"
|
---|
1406 | >imagefill</A
|
---|
1407 | > -- Flood fill</DT
|
---|
1408 | ><DT
|
---|
1409 | ><A
|
---|
1410 | HREF="function.imagefilledarc.html"
|
---|
1411 | >imagefilledarc</A
|
---|
1412 | > -- Draw a partial ellipse and fill it</DT
|
---|
1413 | ><DT
|
---|
1414 | ><A
|
---|
1415 | HREF="function.imagefilledellipse.html"
|
---|
1416 | >imagefilledellipse</A
|
---|
1417 | > -- Draw a filled ellipse</DT
|
---|
1418 | ><DT
|
---|
1419 | ><A
|
---|
1420 | HREF="function.imagefilledpolygon.html"
|
---|
1421 | >imagefilledpolygon</A
|
---|
1422 | > -- Draw a filled polygon</DT
|
---|
1423 | ><DT
|
---|
1424 | ><A
|
---|
1425 | HREF="function.imagefilledrectangle.html"
|
---|
1426 | >imagefilledrectangle</A
|
---|
1427 | > -- Draw a filled rectangle</DT
|
---|
1428 | ><DT
|
---|
1429 | ><A
|
---|
1430 | HREF="function.imagefilltoborder.html"
|
---|
1431 | >imagefilltoborder</A
|
---|
1432 | > -- Flood fill to specific color</DT
|
---|
1433 | ><DT
|
---|
1434 | ><A
|
---|
1435 | HREF="function.imagefontheight.html"
|
---|
1436 | >imagefontheight</A
|
---|
1437 | > -- Get font height</DT
|
---|
1438 | ><DT
|
---|
1439 | ><A
|
---|
1440 | HREF="function.imagefontwidth.html"
|
---|
1441 | >imagefontwidth</A
|
---|
1442 | > -- Get font width</DT
|
---|
1443 | ><DT
|
---|
1444 | ><A
|
---|
1445 | HREF="function.imageftbbox.html"
|
---|
1446 | >imageftbbox</A
|
---|
1447 | > -- Give the bounding box of a text using fonts via freetype2</DT
|
---|
1448 | ><DT
|
---|
1449 | ><A
|
---|
1450 | HREF="function.imagefttext.html"
|
---|
1451 | >imagefttext</A
|
---|
1452 | > -- Write text to the image using fonts using FreeType 2</DT
|
---|
1453 | ><DT
|
---|
1454 | ><A
|
---|
1455 | HREF="function.imagegammacorrect.html"
|
---|
1456 | >imagegammacorrect</A
|
---|
1457 | > -- Apply a gamma correction to a GD image</DT
|
---|
1458 | ><DT
|
---|
1459 | ><A
|
---|
1460 | HREF="function.imagegd2.html"
|
---|
1461 | >imagegd2</A
|
---|
1462 | > -- Output GD2 image to browser or file</DT
|
---|
1463 | ><DT
|
---|
1464 | ><A
|
---|
1465 | HREF="function.imagegd.html"
|
---|
1466 | >imagegd</A
|
---|
1467 | > -- Output GD image to browser or file</DT
|
---|
1468 | ><DT
|
---|
1469 | ><A
|
---|
1470 | HREF="function.imagegif.html"
|
---|
1471 | >imagegif</A
|
---|
1472 | > -- Output image to browser or file</DT
|
---|
1473 | ><DT
|
---|
1474 | ><A
|
---|
1475 | HREF="function.imageinterlace.html"
|
---|
1476 | >imageinterlace</A
|
---|
1477 | > -- Enable or disable interlace</DT
|
---|
1478 | ><DT
|
---|
1479 | ><A
|
---|
1480 | HREF="function.imagejpeg.html"
|
---|
1481 | >imagejpeg</A
|
---|
1482 | > -- Output image to browser or file</DT
|
---|
1483 | ><DT
|
---|
1484 | ><A
|
---|
1485 | HREF="function.imageline.html"
|
---|
1486 | >imageline</A
|
---|
1487 | > -- Draw a line</DT
|
---|
1488 | ><DT
|
---|
1489 | ><A
|
---|
1490 | HREF="function.imageloadfont.html"
|
---|
1491 | >imageloadfont</A
|
---|
1492 | > -- Load a new font</DT
|
---|
1493 | ><DT
|
---|
1494 | ><A
|
---|
1495 | HREF="function.imagepalettecopy.html"
|
---|
1496 | >imagepalettecopy</A
|
---|
1497 | > -- Copy the palette from one image to another</DT
|
---|
1498 | ><DT
|
---|
1499 | ><A
|
---|
1500 | HREF="function.imagepng.html"
|
---|
1501 | >imagepng</A
|
---|
1502 | > -- Output a PNG image to either the browser or a file</DT
|
---|
1503 | ><DT
|
---|
1504 | ><A
|
---|
1505 | HREF="function.imagepolygon.html"
|
---|
1506 | >imagepolygon</A
|
---|
1507 | > -- Draw a polygon</DT
|
---|
1508 | ><DT
|
---|
1509 | ><A
|
---|
1510 | HREF="function.imagepsbbox.html"
|
---|
1511 | >imagepsbbox</A
|
---|
1512 | > --
|
---|
1513 | Give the bounding box of a text rectangle using PostScript Type1
|
---|
1514 | fonts
|
---|
1515 | </DT
|
---|
1516 | ><DT
|
---|
1517 | ><A
|
---|
1518 | HREF="function.imagepscopyfont.html"
|
---|
1519 | >imagepscopyfont</A
|
---|
1520 | > --
|
---|
1521 | Make a copy of an already loaded font for further modification
|
---|
1522 | </DT
|
---|
1523 | ><DT
|
---|
1524 | ><A
|
---|
1525 | HREF="function.imagepsencodefont.html"
|
---|
1526 | >imagepsencodefont</A
|
---|
1527 | > -- Change the character encoding vector of a font</DT
|
---|
1528 | ><DT
|
---|
1529 | ><A
|
---|
1530 | HREF="function.imagepsextendfont.html"
|
---|
1531 | >imagepsextendfont</A
|
---|
1532 | > -- Extend or condense a font</DT
|
---|
1533 | ><DT
|
---|
1534 | ><A
|
---|
1535 | HREF="function.imagepsfreefont.html"
|
---|
1536 | >imagepsfreefont</A
|
---|
1537 | > -- Free memory used by a PostScript Type 1 font</DT
|
---|
1538 | ><DT
|
---|
1539 | ><A
|
---|
1540 | HREF="function.imagepsloadfont.html"
|
---|
1541 | >imagepsloadfont</A
|
---|
1542 | > -- Load a PostScript Type 1 font from file</DT
|
---|
1543 | ><DT
|
---|
1544 | ><A
|
---|
1545 | HREF="function.imagepsslantfont.html"
|
---|
1546 | >imagepsslantfont</A
|
---|
1547 | > -- Slant a font</DT
|
---|
1548 | ><DT
|
---|
1549 | ><A
|
---|
1550 | HREF="function.imagepstext.html"
|
---|
1551 | >imagepstext</A
|
---|
1552 | > -- To draw a text string over an image using PostScript Type1 fonts</DT
|
---|
1553 | ><DT
|
---|
1554 | ><A
|
---|
1555 | HREF="function.imagerectangle.html"
|
---|
1556 | >imagerectangle</A
|
---|
1557 | > -- Draw a rectangle</DT
|
---|
1558 | ><DT
|
---|
1559 | ><A
|
---|
1560 | HREF="function.imagerotate.html"
|
---|
1561 | >imagerotate</A
|
---|
1562 | > -- Rotate an image with a given angle</DT
|
---|
1563 | ><DT
|
---|
1564 | ><A
|
---|
1565 | HREF="function.imagesetbrush.html"
|
---|
1566 | >imagesetbrush</A
|
---|
1567 | > -- Set the brush image for line drawing</DT
|
---|
1568 | ><DT
|
---|
1569 | ><A
|
---|
1570 | HREF="function.imagesetpixel.html"
|
---|
1571 | >imagesetpixel</A
|
---|
1572 | > -- Set a single pixel</DT
|
---|
1573 | ><DT
|
---|
1574 | ><A
|
---|
1575 | HREF="function.imagesetstyle.html"
|
---|
1576 | >imagesetstyle</A
|
---|
1577 | > -- Set the style for line drawing</DT
|
---|
1578 | ><DT
|
---|
1579 | ><A
|
---|
1580 | HREF="function.imagesetthickness.html"
|
---|
1581 | >imagesetthickness</A
|
---|
1582 | > -- Set the thickness for line drawing</DT
|
---|
1583 | ><DT
|
---|
1584 | ><A
|
---|
1585 | HREF="function.imagesettile.html"
|
---|
1586 | >imagesettile</A
|
---|
1587 | > -- Set the tile image for filling</DT
|
---|
1588 | ><DT
|
---|
1589 | ><A
|
---|
1590 | HREF="function.imagestring.html"
|
---|
1591 | >imagestring</A
|
---|
1592 | > -- Draw a string horizontally</DT
|
---|
1593 | ><DT
|
---|
1594 | ><A
|
---|
1595 | HREF="function.imagestringup.html"
|
---|
1596 | >imagestringup</A
|
---|
1597 | > -- Draw a string vertically</DT
|
---|
1598 | ><DT
|
---|
1599 | ><A
|
---|
1600 | HREF="function.imagesx.html"
|
---|
1601 | >imagesx</A
|
---|
1602 | > -- Get image width</DT
|
---|
1603 | ><DT
|
---|
1604 | ><A
|
---|
1605 | HREF="function.imagesy.html"
|
---|
1606 | >imagesy</A
|
---|
1607 | > -- Get image height</DT
|
---|
1608 | ><DT
|
---|
1609 | ><A
|
---|
1610 | HREF="function.imagetruecolortopalette.html"
|
---|
1611 | >imagetruecolortopalette</A
|
---|
1612 | > -- Convert a true color image to a palette image</DT
|
---|
1613 | ><DT
|
---|
1614 | ><A
|
---|
1615 | HREF="function.imagettfbbox.html"
|
---|
1616 | >imagettfbbox</A
|
---|
1617 | > -- Give the bounding box of a text using TrueType fonts</DT
|
---|
1618 | ><DT
|
---|
1619 | ><A
|
---|
1620 | HREF="function.imagettftext.html"
|
---|
1621 | >imagettftext</A
|
---|
1622 | > -- Write text to the image using TrueType fonts</DT
|
---|
1623 | ><DT
|
---|
1624 | ><A
|
---|
1625 | HREF="function.imagetypes.html"
|
---|
1626 | >imagetypes</A
|
---|
1627 | > -- Return the image types supported by this PHP build</DT
|
---|
1628 | ><DT
|
---|
1629 | ><A
|
---|
1630 | HREF="function.imagewbmp.html"
|
---|
1631 | >imagewbmp</A
|
---|
1632 | > -- Output image to browser or file</DT
|
---|
1633 | ><DT
|
---|
1634 | ><A
|
---|
1635 | HREF="function.iptcembed.html"
|
---|
1636 | >iptcembed</A
|
---|
1637 | > -- Embed binary IPTC data into a JPEG image</DT
|
---|
1638 | ><DT
|
---|
1639 | ><A
|
---|
1640 | HREF="function.iptcparse.html"
|
---|
1641 | >iptcparse</A
|
---|
1642 | > --
|
---|
1643 | Parse a binary IPTC <A
|
---|
1644 | HREF="http://www.iptc.org/"
|
---|
1645 | TARGET="_top"
|
---|
1646 | >http://www.iptc.org/</A
|
---|
1647 | >
|
---|
1648 | block into single tags.
|
---|
1649 | </DT
|
---|
1650 | ><DT
|
---|
1651 | ><A
|
---|
1652 | HREF="function.jpeg2wbmp.html"
|
---|
1653 | >jpeg2wbmp</A
|
---|
1654 | > -- Convert JPEG image file to WBMP image file</DT
|
---|
1655 | ><DT
|
---|
1656 | ><A
|
---|
1657 | HREF="function.png2wbmp.html"
|
---|
1658 | >png2wbmp</A
|
---|
1659 | > -- Convert PNG image file to WBMP image file</DT
|
---|
1660 | ><DT
|
---|
1661 | ><A
|
---|
1662 | HREF="function.read-exif-data.html"
|
---|
1663 | >read_exif_data</A
|
---|
1664 | > -- Reads header information stored in TIFF and JPEG images</DT
|
---|
1665 | ></DL
|
---|
1666 | ></DIV
|
---|
1667 | ></DIV
|
---|
1668 | ></DIV
|
---|
1669 | ><DIV
|
---|
1670 | CLASS="NAVFOOTER"
|
---|
1671 | ><HR
|
---|
1672 | ALIGN="LEFT"
|
---|
1673 | WIDTH="100%"><TABLE
|
---|
1674 | SUMMARY="Footer navigation table"
|
---|
1675 | WIDTH="100%"
|
---|
1676 | BORDER="0"
|
---|
1677 | CELLPADDING="0"
|
---|
1678 | CELLSPACING="0"
|
---|
1679 | ><TR
|
---|
1680 | ><TD
|
---|
1681 | WIDTH="33%"
|
---|
1682 | ALIGN="left"
|
---|
1683 | VALIGN="top"
|
---|
1684 | ><A
|
---|
1685 | HREF="function.ob-iconv-handler.html"
|
---|
1686 | ACCESSKEY="P"
|
---|
1687 | >Pøedcházející</A
|
---|
1688 | ></TD
|
---|
1689 | ><TD
|
---|
1690 | WIDTH="34%"
|
---|
1691 | ALIGN="center"
|
---|
1692 | VALIGN="top"
|
---|
1693 | ><A
|
---|
1694 | HREF="index.html"
|
---|
1695 | ACCESSKEY="H"
|
---|
1696 | >Domù</A
|
---|
1697 | ></TD
|
---|
1698 | ><TD
|
---|
1699 | WIDTH="33%"
|
---|
1700 | ALIGN="right"
|
---|
1701 | VALIGN="top"
|
---|
1702 | ><A
|
---|
1703 | HREF="function.exif-imagetype.html"
|
---|
1704 | ACCESSKEY="N"
|
---|
1705 | >Dal¹í</A
|
---|
1706 | ></TD
|
---|
1707 | ></TR
|
---|
1708 | ><TR
|
---|
1709 | ><TD
|
---|
1710 | WIDTH="33%"
|
---|
1711 | ALIGN="left"
|
---|
1712 | VALIGN="top"
|
---|
1713 | >ob_iconv_handler</TD
|
---|
1714 | ><TD
|
---|
1715 | WIDTH="34%"
|
---|
1716 | ALIGN="center"
|
---|
1717 | VALIGN="top"
|
---|
1718 | ><A
|
---|
1719 | HREF="funcref.html"
|
---|
1720 | ACCESSKEY="U"
|
---|
1721 | >Nahoru</A
|
---|
1722 | ></TD
|
---|
1723 | ><TD
|
---|
1724 | WIDTH="33%"
|
---|
1725 | ALIGN="right"
|
---|
1726 | VALIGN="top"
|
---|
1727 | >exif_imagetype</TD
|
---|
1728 | ></TR
|
---|
1729 | ></TABLE
|
---|
1730 | ></DIV
|
---|
1731 | ></BODY
|
---|
1732 | ></HTML
|
---|
1733 | >
|
---|