source: www/manuals/PHP_manual/ref.image.html@ 1

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

Prvotní import všeho

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