diff --git a/functions/image.xml b/functions/image.xml index ecedd943d9..f2bb3add7f 100644 --- a/functions/image.xml +++ b/functions/image.xml @@ -1,1050 +1,1048 @@ - - Image functions - Graphics - - - - You can use the image functions in PHP to get the size of - JPEG, GIF, - PNG, and SWF images, and if - you have the GD library (available at &url.gd;) you will also be able to create - and manipulate images. - - - The format of images you are able to manipulate depend on the - version of gd you install, and any other libraries gd might need - to access those image formats. Versions of gd older than gd-1.6 - support gif format images, and do not support png, where versions - greater than gd-1.6 support png, not gif. - - - In order to read and write images in jpeg format, you will need to - obtain and install jpeg-6b (available at - &url.jpeg;), and then recompile gd to - make use of jpeg-6b. You will also have to compile PHP with - . - - - To add support for Type 1 fonts, you can install t1lib (available - at &url.t1lib;), and then add - . - - - - - - GetImageSize - Get the size of a GIF, JPEG, PNG or SWF image - - - Description - - - array getimagesize - string filename - array - imageinfo - - - - - The GetImageSize function will determine the - size of any GIF, JPG, - PNG or SWF image file and - return the dimensions along with the file type and a height/width - text string to be used inside a normal HTML - IMG tag. - - - Returns an array with 4 elements. Index 0 contains the width of - the image in pixels. Index 1 contains the height. Index 2 a - flag indicating the type of the image. 1 = GIF, 2 = JPG, 3 = - PNG, 4 = SWF. Index 3 is a text string with the correct - "height=xxx width=xxx" string that can be used directly in an IMG - tag. - - GetImageSize (file) - + + Image functions + Graphics + + + + You can use the image functions in PHP to get the size of + JPEG, GIF, + PNG, and SWF images, and if + you have the GD library (available at &url.gd;) you will also be able to create + and manipulate images. + + + The format of images you are able to manipulate depend on the + version of gd you install, and any other libraries gd might need + to access those image formats. Versions of gd older than gd-1.6 + support gif format images, and do not support png, where versions + greater than gd-1.6 support png, not gif. + + + In order to read and write images in jpeg format, you will need to + obtain and install jpeg-6b (available at + &url.jpeg;), and then recompile gd to + make use of jpeg-6b. You will also have to compile PHP with + . + + + To add support for Type 1 fonts, you can install t1lib (available + at &url.t1lib;), and then add + . + + + + + + GetImageSize + Get the size of a GIF, JPEG, PNG or SWF image + + + Description + + + array getimagesize + string filename + array + imageinfo + + + + + The GetImageSize function will determine the + size of any GIF, JPG, + PNG or SWF image file and + return the dimensions along with the file type and a height/width + text string to be used inside a normal HTML + IMG tag. + + + Returns an array with 4 elements. Index 0 contains the width of + the image in pixels. Index 1 contains the height. Index 2 a + flag indicating the type of the image. 1 = GIF, 2 = JPG, 3 = + PNG, 4 = SWF. Index 3 is a text string with the correct + "height=xxx width=xxx" string that can be used directly in an IMG + tag. + + GetImageSize (file) + <?php $size = GetImageSize ("img/flag.jpg"); ?> <IMG SRC="img/flag.jpg" <?php echo $size[3]; ?> - - - - - - GetImageSize (URL) - + + + + + + GetImageSize (URL) + <?php $size = GetImageSize ("http://www.php.net/gifs/logo.gif"); ?> - - - - - The optional imageinfo parameter allows - you to extract some extended information from the image - file. Currently this will return the diffrent - JPG APP markers in an associative Array. Some - Programs use these APP markers to embedd text information in - images. A very common one in to embed IPTC - &url.iptc; information in the - APP13 marker. You can use the iptcparse - function to parse the binary APP13 marker into something - readable. - - GetImageSize returning IPTC - -<?php + + + + + The optional imageinfo parameter allows + you to extract some extended information from the image + file. Currently this will return the diffrent + JPG APP markers in an associative Array. Some + Programs use these APP markers to embedd text information in + images. A very common one in to embed IPTC + &url.iptc; information in the + APP13 marker. You can use the iptcparse + function to parse the binary APP13 marker into something + readable. + + GetImageSize returning IPTC + +<?php $size = GetImageSize ("testimg.jpg",&$info); if (isset ($info["APP13"])) { $iptc = iptcparse ($info["APP13"]); var_dump ($iptc); } ?> - - - - - This function does not require the GD image library. - - - - - URL support was added in PHP 4.0.5 - - - - - - - - - ImageAlphaBlending - Set the blending mode for an image - - - Description - - - int imagealphablending - resource im - bool blendmode - - - - ImageAlphaBlending allows for two different - modes of drawing on truecolor images. In blending mode, the - alpha channel component of the color supplied to all drawing function, - such as ImageSetPixel determines how much of the - underlying color shouldbe allowed to shine through. As a result, gd - automatically blends the existing color at that point with the drawing color, - and stores the result in the image. The resulting pixel is opaque. In - non-blending mode, the drawing color is copied literally with its alpha channel - information, replacing the destination pixel. Blending mode is not available - when drawing on palette images. - If blendmode is true, then blending mode is enabled, otherwise - disabled. - - This function was added in PHP 4.0.6 and requires GD 2.0.1 - - - - - - - ImageArc - Draw a partial ellipse - - - Description - - - int imagearc - int im - int cx - int cy - int w - int h - int s - int e - int col - - - - ImageArc draws a partial ellipse centered at - cx, cy (top left is - 0, 0) in the image represented by im. W - and h specifies the ellipse's width and - height respectively while the start and end points are specified - in degrees indicated by the s and - e. arguments. - - - - - - - ImageArc - Draw a partial ellipse and fill it - - - Description - - - int imagefilledarc - int im - int cx - int cy - int w - int h - int s - int e - int col - int style - - - - ImageFilledArc draws a partial ellipse centered at - cx, cy (top left is - 0, 0) in the image represented by im. W - and h specifies the ellipse's width and - height respectively while the start and end points are specified - in degrees indicated by the s and - e. arguments. - style is a bitwise OR of the following possibilities: - - IMG_ARC_PIE - IMG_ARC_CHORD - IMG_ARC_NOFILL - IMG_ARC_EDGED - - IMG_ARC_PIE and IMG_ARC_CHORD are mutually exclusive; IMG_ARC_CHORD just - connects the starting and ending angles with a straight line, while - IMG_ARC_PIE produces a rounded edge. IMG_ARC_NOFILL indicates that the arc - or chord should be outlined, not filled. IMG_ARC_EDGED, used together with - IMG_ARC_NOFILL, indicates that the beginning and ending angles should be - connected to the center - this is a good way to outline (rather than fill) - a 'pie slice'. - - This function was added in PHP 4.0.6 and requires GD 2.0.1 - - - - - - - - ImageEllipse - Draw an ellipse - - - Description - - - int imageellipse - resource im - int cx - int cy - int w - int h - int col - - - - ImageEllipse draws an ellipse centered at - cx, cy (top left is - 0, 0) in the image represented by im. - W and h specifies the - ellipse's width and height respectively. The color of the ellipse is - specified by color. - - This function was added in PHP 4.0.6 and requires GD 2.0.2 or later - - - - - - - ImageFilledEllipse - Draw a filled ellipse - - - Description - - - int imagefilledellipse - resource im - int cx - int cy - int w - int h - int col - - - - ImageFilledEllipse draws an ellipse centered at - cx, cy (top left is - 0, 0) in the image represented by im. - W and h specifies the - ellipse's width and height respectively. The ellipse is filled using - color - - This function was added in PHP 4.0.6 and requires GD 2.0.1 or later - - - - - - ImageChar - Draw a character horizontally - - - Description - - - int imagechar - int im - int font - int x - int y - string c - int col - - - - ImageChar draws the first character of - c in the image identified by - id with its upper-left at - x,y (top left is 0, - 0) with the color col. If font is 1, 2, 3, - 4 or 5, a built-in font is used (with higher numbers - corresponding to larger fonts). - - - See also imageloadfont. - - - - - - - ImageCharUp - Draw a character vertically - - - Description - - - int imagecharup - int im - int font - int x - int y - string c - int col - - - - ImageCharUp draws the character - c vertically in the image identified by - im at coordinates - x, y (top left is - 0, 0) with the color col. If font is 1, - 2, 3, 4 or 5, a built-in font is used. - - - See also imageloadfont. - - - - - - - ImageColorAllocate - Allocate a color for an image - - - Description - - - int imagecolorallocate - int im - int red - int green - int blue - - - - ImageColorAllocate returns a color - identifier representing the color composed of the given - RGB components. The im - argument is the return from the imagecreate - function. ImageColorAllocate must be called - to create each color that is to be used in the image represented - by im. - - + + + + + This function does not require the GD image library. + + + + + URL support was added in PHP 4.0.5 + + + + + + + + + ImageAlphaBlending + Set the blending mode for an image + + + Description + + + int imagealphablending + resource im + bool blendmode + + + + ImageAlphaBlending allows for two different + modes of drawing on truecolor images. In blending mode, the + alpha channel component of the color supplied to all drawing function, + such as ImageSetPixel determines how much of the + underlying color shouldbe allowed to shine through. As a result, gd + automatically blends the existing color at that point with the drawing color, + and stores the result in the image. The resulting pixel is opaque. In + non-blending mode, the drawing color is copied literally with its alpha channel + information, replacing the destination pixel. Blending mode is not available + when drawing on palette images. + If blendmode is true, then blending mode is enabled, otherwise + disabled. + + This function was added in PHP 4.0.6 and requires GD 2.0.1 + + + + + + + ImageArc + Draw a partial ellipse + + + Description + + + int imagearc + int im + int cx + int cy + int w + int h + int s + int e + int col + + + + ImageArc draws a partial ellipse centered at + cx, cy (top left is + 0, 0) in the image represented by im. + W + and h specifies the ellipse's width and + height respectively while the start and end points are specified + in degrees indicated by the s and + e. arguments. + + + + + + + ImageFilledArc + Draw a partial ellipse and fill it + + + Description + + + int imagefilledarc + int im + int cx + int cy + int w + int h + int s + int e + int col + int style + + + + ImageFilledArc draws a partial ellipse centered at + cx, cy (top left is + 0, 0) in the image represented by im. + W + and h specifies the ellipse's width and + height respectively while the start and end points are specified + in degrees indicated by the s and + e. arguments. + style is a bitwise OR of the following possibilities: + + IMG_ARC_PIE + IMG_ARC_CHORD + IMG_ARC_NOFILL + IMG_ARC_EDGED + + IMG_ARC_PIE and IMG_ARC_CHORD are mutually exclusive; IMG_ARC_CHORD just + connects the starting and ending angles with a straight line, while + IMG_ARC_PIE produces a rounded edge. IMG_ARC_NOFILL indicates that the arc + or chord should be outlined, not filled. IMG_ARC_EDGED, used together with + IMG_ARC_NOFILL, indicates that the beginning and ending angles should be + connected to the center - this is a good way to outline (rather than fill) + a 'pie slice'. + + This function was added in PHP 4.0.6 and requires GD 2.0.1 + + + + + + + + ImageEllipse + Draw an ellipse + + + Description + + + int imageellipse + resource im + int cx + int cy + int w + int h + int col + + + + ImageEllipse draws an ellipse centered at + cx, cy (top left is + 0, 0) in the image represented by im. + W and h specifies the + ellipse's width and height respectively. The color of the ellipse is + specified by color. + + This function was added in PHP 4.0.6 and requires GD 2.0.2 or later + + + + + + + ImageFilledEllipse + Draw a filled ellipse + + + Description + + + int imagefilledellipse + resource im + int cx + int cy + int w + int h + int col + + + + ImageFilledEllipse draws an ellipse centered at + cx, cy (top left is + 0, 0) in the image represented by im. + W and h specifies the + ellipse's width and height respectively. The ellipse is filled using + color + + This function was added in PHP 4.0.6 and requires GD 2.0.1 or later + + + + + + ImageChar + Draw a character horizontally + + + Description + + + int imagechar + int im + int font + int x + int y + string c + int col + + + + ImageChar draws the first character of + c in the image identified by + id with its upper-left at + x,y (top left is 0, + 0) with the color col. If font is 1, 2, 3, + 4 or 5, a built-in font is used (with higher numbers + corresponding to larger fonts). + + + See also imageloadfont. + + + + + + + ImageCharUp + Draw a character vertically + + + Description + + + int imagecharup + int im + int font + int x + int y + string c + int col + + + + ImageCharUp draws the character + c vertically in the image identified by + im at coordinates + x, y (top left is + 0, 0) with the color col. If font is 1, + 2, 3, 4 or 5, a built-in font is used. + + + See also imageloadfont. + + + + + + + ImageColorAllocate + Allocate a color for an image + + + Description + + + int imagecolorallocate + int im + int red + int green + int blue + + + + ImageColorAllocate returns a color + identifier representing the color composed of the given + RGB components. The im + argument is the return from the imagecreate + function. ImageColorAllocate must be called + to create each color that is to be used in the image represented + by im. + + $white = ImageColorAllocate ($im, 255, 255, 255); $black = ImageColorAllocate ($im, 0, 0, 0); - - - - - - - - - ImageColorDeAllocate - - De-allocate a color for an image - - - - Description - - - int - imagecolordeallocate - - int - im - - int - index - - - - - The ImageColorDeAllocate function - de-allocates a color previously allocated with the - ImageColorAllocate function. - - + + + + + + + + + ImageColorDeAllocate + + De-allocate a color for an image + + + + Description + + + int + imagecolordeallocate + + int + im + + int + index + + + + + The ImageColorDeAllocate function + de-allocates a color previously allocated with the + ImageColorAllocate function. + + $white = ImageColorAllocate($im, 255, 255, 255); ImageColorDeAllocate($im, $white); - - - - - - - - - ImageColorAt - Get the index of the color of a pixel - - - Description - - - int imagecolorat - int im - int x - int y - - - - Returns the index of the color of the pixel at the - specified location in the image. - - - See also imagecolorset and - imagecolorsforindex. - - - - - - - ImageColorClosest - - Get the index of the closest color to the specified color - - - - Description - - - int imagecolorclosest - int im - int red - int green - int blue - - - - Returns the index of the color in the palette of the image which - is "closest" to the specified RGB value. - - - The "distance" between the desired color and each color in the - palette is calculated as if the RGB values - represented points in three-dimensional space. - - - See also imagecolorexact. - - - - - - - ImageColorClosestAlpha - - Get the index of the closest color to the specified color + alpha - - - - Description - - - int imagecolorclosestalpha - resource im - int red - int green - int blue - int alpha - - - - Returns the index of the color in the palette of the image which - is "closest" to the specified RGB value and alpha level. - - - See also imagecolorexactalpha. - - This function was added in PHP 4.0.6 and requires GD 2.0.1 - - - - - - - - ImageColorExact - Get the index of the specified color - - - Description - - - int imagecolorexact - int im - int red - int green - int blue - - - - Returns the index of the specified color in the palette of the - image. - - - If the color does not exist in the image's palette, -1 is - returned. - - - See also imagecolorclosest. - - - - - - - ImageColorExactAlpha - Get the index of the specified color + alpha - - - Description - - - int imagecolorexactalpha - resource im - int red - int green - int blue - int alpha - - - - Returns the index of the specified color+alpha in the palette of the - image. - - - If the color does not exist in the image's palette, -1 is - returned. - - - See also imagecolorclosestalpha. - - This function was added in PHP 4.0.6 and requires GD 2.0.1 or later - - - - - - - ImageColorResolve - - Get the index of the specified color or its closest possible - alternative - - - - Description - - - int imagecolorresolve - int im - int red - int green - int blue - - - - This function is guaranteed to return a color index for a - requested color, either the exact color or the closest possible - alternative. - - - See also imagecolorclosest. - - - - - - - ImageColorResolveAlpha - - Get the index of the specified color + alpha or its closest possible - alternative - - - - Description - - - int imagecolorresolvealpha - resource im - int red - int green - int blue - int alpha - - - - This function is guaranteed to return a color index for a - requested color, either the exact color or the closest possible - alternative. - - - See also imagecolorclosestalpha. - - This function was added in PHP 4.0.6 and requires GD 2.0.1 - - - - - - - - ImageGammaCorrect - - Apply a gamma correction to a GD image - - - - Description - - - int - imagegammacorrect - - int - im - - double - inputgamma - - double - outputgamma - - - - - The ImageGammaCorrect function applies gamma - correction to a gd image stream (im) given - an input gamma, the parameter inputgamma - and an output gamma, the parameter - outputgamma. - - - - - - - ImageColorSet - - Set the color for the specified palette index - - - - Description - - - bool imagecolorset - int im - int index - int red - int green - int blue - - - - This sets the specified index in the palette to the specified - color. This is useful for creating flood-fill-like effects in - paletted images without the overhead of performing the actual - flood-fill. - - - See also imagecolorat. - - - - - - - ImageColorsForIndex - Get the colors for an index - - - Description - - - array imagecolorsforindex - int im - int index - - - - This returns an associative array with red, green, and blue keys - that contain the appropriate values for the specified color - index. - - - See also imagecolorat and - imagecolorexact. - - - - - - - ImageColorsTotal - - Find out the number of colors in an image's palette - - - - Description - - - int imagecolorstotal - int im - - - - This returns the number of colors in the specified image's - palette. - - - See also imagecolorat and - imagecolorsforindex. - - - - - - - ImageColorTransparent - Define a color as transparent - - - Description - - - int imagecolortransparent - int im - int - col - - - - - ImageColorTransparent sets the transparent - color in the im image to - col. Im is the - image identifier returned by ImageCreate and - col is a color identifier returned by - ImageColorAllocate. - - - The identifier of the new (or current, if none is specified) - transparent color is returned. - - - - - - - ImageCopy - - Copy part of an image - - - - Description - - - int - ImageCopy - - int - dst_im - - int - src_im - - int - dst_x - - int - dst_y - - int - src_x - - int - src_y - - int - src_w - - int - src_h - - - - - Copy a part of src_im onto - dst_im starting at the x,y coordinates - src_x, src_y with - a width of src_w and a height of - src_h. The portion defined will be copied - onto the x,y coordinates, dst_x and - dst_y. - - - - - - - ImageCopyMerge - - Copy and merge part of an image - - - - Description - - - int ImageCopyMerge - int dst_im - int src_im - int dst_x - int dst_y - int src_x - int src_y - int src_w - int src_h - int pct - - - - Copy a part of src_im onto - dst_im starting at the x,y coordinates - src_x, src_y with - a width of src_w and a height of - src_h. The portion defined will be copied - onto the x,y coordinates, dst_x and - dst_y. - The two images will be merged according to pct - which can range from 0 to 100. When pct = 0, - no action is taken, when 100 this function behaves identically - to ImageCopy. - - - - - - - ImageCopyMergeGray - - Copy and merge part of an image with gray scale - - - - Description - - - int ImageCopyMergeGray - int dst_im - int src_im - int dst_x - int dst_y - int src_x - int src_y - int src_w - int src_h - int pct - - - - This function is identical to ImageCopyMerge except - that when merging it preservese the hue of the source by converting - the destination pixels to gray scale before the copy operation. - - - Copy a part of src_im onto - dst_im starting at the x,y coordinates - src_x, src_y with - a width of src_w and a height of - src_h. The portion defined will be copied - onto the x,y coordinates, dst_x and - dst_y. - The two images will be merged according to pct - which can range from 0 to 100. When pct = 0, - no action is taken, when 100 this function behaves identically - to ImageCopy. - - - This function is identical to ImageCopyMerge except - that when merging it preservese the hue of the source by converting - the destination pixels to gray scale before the copy operation. - - This function was added in PHP 4.0.6 - - - - - - ImageCopyResized - Copy and resize part of an image - - - Description - - - int imagecopyresized - int dst_im - int src_im - int dstX - int dstY - int srcX - int srcY - int dstW - int dstH - int srcW - int srcH - - - - ImageCopyResized copies a rectangular - portion of one image to another image. - Dst_im is the destination image, - src_im is the source image identifier. If - the source and destination coordinates and width and heights - differ, appropriate stretching or shrinking of the image fragment - will be performed. The coordinates refer to the upper left - corner. This function can be used to copy regions within the - same image (if dst_im is the same as - src_im) but if the regions overlap the - results will be unpredictable. - - - See also ImageCopyResampled. - - - - - - - ImageCopyResampled - Copy and resize part of an image with resampling - - - Description - - - int imagecopyresampled - resource dst_im - resource src_im - int dstX - int dstY - int srcX - int srcY - int dstW - int dstH - int srcW - int srcH - - - - ImageCopyResampled copies a rectangular - portion of one image to another image, smoothly interpolating pixel - values so that, in particular, reducing the size of an image still - retains a great deal of clarity. - Dst_im is the destination image, - src_im is the source image identifier. If - the source and destination coordinates and width and heights - differ, appropriate stretching or shrinking of the image fragment - will be performed. The coordinates refer to the upper left - corner. This function can be used to copy regions within the - same image (if dst_im is the same as - src_im) but if the regions overlap the - results will be unpredictable. - - - See also ImageCopyResized. - - This function was added in PHP 4.0.6 and requires GD 2.0.1 or later - - - - - - - - ImageCreate - Create a new palette based image - - - Description - - - int imagecreate - int x_size - int y_size - - - - ImageCreate returns an image identifier - representing a blank image of size x_size - by y_size. - - - Creating a new GD image stream and outputting an image. - - + + + + + + + + + ImageColorAt + Get the index of the color of a pixel + + + Description + + + int imagecolorat + int im + int x + int y + + + + Returns the index of the color of the pixel at the + specified location in the image. + + + See also imagecolorset and + imagecolorsforindex. + + + + + + + ImageColorClosest + + Get the index of the closest color to the specified color + + + + Description + + + int imagecolorclosest + int im + int red + int green + int blue + + + + Returns the index of the color in the palette of the image which + is "closest" to the specified RGB value. + + + The "distance" between the desired color and each color in the + palette is calculated as if the RGB values + represented points in three-dimensional space. + + + See also imagecolorexact. + + + + + + + ImageColorClosestAlpha + + Get the index of the closest color to the specified color + alpha + + + + Description + + + int imagecolorclosestalpha + resource im + int red + int green + int blue + int alpha + + + + Returns the index of the color in the palette of the image which + is "closest" to the specified RGB value and alpha level. + + + See also imagecolorexactalpha. + + This function was added in PHP 4.0.6 and requires GD 2.0.1 + + + + + + + + ImageColorExact + Get the index of the specified color + + + Description + + + int imagecolorexact + int im + int red + int green + int blue + + + + Returns the index of the specified color in the palette of the + image. + + + If the color does not exist in the image's palette, -1 is + returned. + + + See also imagecolorclosest. + + + + + + + ImageColorExactAlpha + Get the index of the specified color + alpha + + + Description + + + int imagecolorexactalpha + resource im + int red + int green + int blue + int alpha + + + + Returns the index of the specified color+alpha in the palette of the + image. + + + If the color does not exist in the image's palette, -1 is + returned. + + + See also imagecolorclosestalpha. + + This function was added in PHP 4.0.6 and requires GD 2.0.1 or later + + + + + + + ImageColorResolve + + Get the index of the specified color or its closest possible + alternative + + + + Description + + + int imagecolorresolve + int im + int red + int green + int blue + + + + This function is guaranteed to return a color index for a + requested color, either the exact color or the closest possible + alternative. + + + See also imagecolorclosest. + + + + + + + ImageColorResolveAlpha + + Get the index of the specified color + alpha or its closest possible + alternative + + + + Description + + + int imagecolorresolvealpha + resource im + int red + int green + int blue + int alpha + + + + This function is guaranteed to return a color index for a + requested color, either the exact color or the closest possible + alternative. + + + See also imagecolorclosestalpha. + + This function was added in PHP 4.0.6 and requires GD 2.0.1 + + + + + + + + ImageGammaCorrect + + Apply a gamma correction to a GD image + + + + Description + + + int + imagegammacorrect + + int + im + + double + inputgamma + + double + outputgamma + + + + + The ImageGammaCorrect function applies gamma + correction to a gd image stream (im) given + an input gamma, the parameter inputgamma + and an output gamma, the parameter + outputgamma. + + + + + + + ImageColorSet + + Set the color for the specified palette index + + + + Description + + + bool imagecolorset + int im + int index + int red + int green + int blue + + + + This sets the specified index in the palette to the specified + color. This is useful for creating flood-fill-like effects in + paletted images without the overhead of performing the actual + flood-fill. + + + See also imagecolorat. + + + + + + + ImageColorsForIndex + Get the colors for an index + + + Description + + + array imagecolorsforindex + int im + int index + + + + This returns an associative array with red, green, and blue keys + that contain the appropriate values for the specified color + index. + + + See also imagecolorat and + imagecolorexact. + + + + + + + ImageColorsTotal + + Find out the number of colors in an image's palette + + + + Description + + + int imagecolorstotal + int im + + + + This returns the number of colors in the specified image's + palette. + + + See also imagecolorat and + imagecolorsforindex. + + + + + + + ImageColorTransparent + Define a color as transparent + + + Description + + + int imagecolortransparent + int im + int + col + + + + + ImageColorTransparent sets the transparent + color in the im image to + col. Im is the + image identifier returned by ImageCreate and + col is a color identifier returned by + ImageColorAllocate. + + + The identifier of the new (or current, if none is specified) + transparent color is returned. + + + + + + + ImageCopy + + Copy part of an image + + + + Description + + + int + ImageCopy + + resource + dst_im + + resource + src_im + + int + dst_x + + int + dst_y + + int + src_x + + int + src_y + + int + src_w + + int + src_h + + + + + Copy a part of src_im onto + dst_im starting at the x,y coordinates + src_x, src_y with + a width of src_w and a height of + src_h. The portion defined will be copied + onto the x,y coordinates, dst_x and + dst_y. + + + + + + + ImageCopyMerge + + Copy and merge part of an image + + + + Description + + + int ImageCopyMerge + resource dst_im + resource src_im + int dst_x + int dst_y + int src_x + int src_y + int src_w + int src_h + int pct + + + + Copy a part of src_im onto + dst_im starting at the x,y coordinates + src_x, src_y with + a width of src_w and a height of + src_h. The portion defined will be copied + onto the x,y coordinates, dst_x and + dst_y. + The two images will be merged according to pct + which can range from 0 to 100. When pct = 0, + no action is taken, when 100 this function behaves identically + to ImageCopy. + + This function was added in PHP 4.0.6 + + + + + + ImageCopyMergeGray + + Copy and merge part of an image with gray scale + + + + Description + + + int ImageCopyMergeGray + resource dst_im + resource src_im + int dst_x + int dst_y + int src_x + int src_y + int src_w + int src_h + int pct + + + + ImageCopyMergeGray copy a part of src_im onto + dst_im starting at the x,y coordinates + src_x, src_y with + a width of src_w and a height of + src_h. The portion defined will be copied + onto the x,y coordinates, dst_x and + dst_y. + The two images will be merged according to pct + which can range from 0 to 100. When pct = 0, + no action is taken, when 100 this function behaves identically + to ImageCopy. + + + This function is identical to ImageCopyMerge except + that when merging it preservese the hue of the source by converting + the destination pixels to gray scale before the copy operation. + + This function was added in PHP 4.0.6 + + + + + + ImageCopyResized + Copy and resize part of an image + + + Description + + + int imagecopyresized + resource dst_im + resource src_im + int dstX + int dstY + int srcX + int srcY + int dstW + int dstH + int srcW + int srcH + + + + ImageCopyResized copies a rectangular + portion of one image to another image. + Dst_im is the destination image, + src_im is the source image identifier. If + the source and destination coordinates and width and heights + differ, appropriate stretching or shrinking of the image fragment + will be performed. The coordinates refer to the upper left + corner. This function can be used to copy regions within the + same image (if dst_im is the same as + src_im) but if the regions overlap the + results will be unpredictable. + + + See also ImageCopyResampled. + + + + + + + ImageCopyResampled + Copy and resize part of an image with resampling + + + Description + + + int imagecopyresampled + resource dst_im + resource src_im + int dstX + int dstY + int srcX + int srcY + int dstW + int dstH + int srcW + int srcH + + + + ImageCopyResampled copies a rectangular + portion of one image to another image, smoothly interpolating pixel + values so that, in particular, reducing the size of an image still + retains a great deal of clarity. + Dst_im is the destination image, + src_im is the source image identifier. If + the source and destination coordinates and width and heights + differ, appropriate stretching or shrinking of the image fragment + will be performed. The coordinates refer to the upper left + corner. This function can be used to copy regions within the + same image (if dst_im is the same as + src_im) but if the regions overlap the + results will be unpredictable. + + + See also ImageCopyResized. + + This function was added in PHP 4.0.6 and requires GD 2.0.1 or later + + + + + + + + ImageCreate + Create a new palette based image + + + Description + + + int imagecreate + int x_size + int y_size + + + + ImageCreate returns an image identifier + representing a blank image of size x_size + by y_size. + + + Creating a new GD image stream and outputting an image. + + <?php header ("Content-type: image/png"); $im = @ImageCreate (50, 100) @@ -1054,36 +1052,34 @@ $text_color = ImageColorAllocate ($im, 233, 14, 91); ImageString ($im, 1, 5, 5, "A Simple Text String", $text_color); ImagePng ($im); ?> - - - - + + + + + + + + + ImageCreateTrueColor + Create a new true color image + + + Description + + + resource imagecreatetruecolor + int x_size + int y_size + + + + ImageCreateTrueColor returns an image identifier + representing a black image of size x_size + by y_size. + + This function was added in PHP 4.0.6 and requires GD 2.0.1 or later - - - - ImageCreateTrueColor - Create a new true color image - - - Description - - - resource imagecreatetruecolor - int x_size - int y_size - - - - ImageCreateTrueColor returns an image identifier - representing a black image of size x_size - by y_size. - - This function was added in PHP 4.0.6 - This function requires GD 2.0.1 or later - - - + ImageTrueColorToPalette @@ -1095,34 +1091,33 @@ ImagePng ($im); void imagetruecolortopalette resource im - bool dither - int ncolors + bool dither + int ncolors - + ImageTrueColorToPalette converts a truecolor image - to a palette image. The code for this function was originally drawn from - the Independent JPEG Group library code, which is excellent. The code - has been modified to preserve as much alpha channel information as - possible in the resulting palette, in addition to preserving colors as - well as possible. This does not work as well as might be hoped. It is - usually best to simply produce a truecolor output image instead, which - guarantees the highest output quality. + to a palette image. The code for this function was originally drawn from + the Independent JPEG Group library code, which is excellent. The code + has been modified to preserve as much alpha channel information as + possible in the resulting palette, in addition to preserving colors as + well as possible. This does not work as well as might be hoped. It is + usually best to simply produce a truecolor output image instead, which + guarantees the highest output quality. - - dither indicates if the image should be dithered - - if it is true then dithering will be used which will result in a more - speckled image but with better color approximation. - - - ncolors sets the maximum number of colors that - should be retained in the palette. - - This function was added in PHP 4.0.6 - This function requires GD 2.0.1 or later + + dither indicates if the image should be dithered - + if it is true then dithering will be used which will result in a more + speckled image but with better color approximation. + + + ncolors sets the maximum number of colors that + should be retained in the palette. + + This function was added in PHP 4.0.6 and requires GD 2.0.1 or later - + ImageCreateFromGIF @@ -1140,16 +1135,16 @@ ImagePng ($im); ImageCreateFromGif returns an image identifier representing the image obtained from the given filename. - + ImageCreateFromGif returns an empty string on failure. It also outputs an error message, which unfortunately displays as a broken link in a browser. To ease debugging the following example will produce an error GIF: - - - Example to handle an error during creation (courtesy - vic@zymsys.com) - + + + Example to handle an error during creation (courtesy + vic@zymsys.com) + function LoadGif ($imgname) { $im = @ImageCreateFromGIF ($imgname); /* Attempt to open */ @@ -1157,9 +1152,9 @@ function LoadGif ($imgname) { $im = ImageCreate (150, 30); /* Create a blank image */ $bgc = ImageColorAllocate ($im, 255, 255, 255); $tc = ImageColorAllocate ($im, 0, 0, 0); - ImageFilledRectangle ($im, 0, 0, 150, 30, $bgc); + ImageFilledRectangle ($im, 0, 0, 150, 30, $bgc); /* Output an errmsg */ - ImageString($im, 1, 5, 5, "Error loading $imgname", $tc); + ImageString($im, 1, 5, 5, "Error loading $imgname", $tc); } return $im; } @@ -1175,7 +1170,7 @@ function LoadGif ($imgname) { - + ImageCreateFromJPEG @@ -1193,13 +1188,13 @@ function LoadGif ($imgname) { ImageCreateFromJPEG returns an image identifier representing the image obtained from the given filename. - + ImagecreateFromJPEG returns an empty string on failure. It also outputs an error message, which unfortunately displays as a broken link in a browser. To ease debugging the following example will produce an error JPEG: - - + <example> + <title> Example to handle an error during creation (courtesy vic@zymsys.com ) @@ -1212,7 +1207,7 @@ function LoadJpeg ($imgname) { $tc = ImageColorAllocate ($im, 0, 0, 0); ImageFilledRectangle ($im, 0, 0, 150, 30, $bgc); /* Output an errmsg */ - ImageString ($im, 1, 5, 5, "Error loading $imgname", $tc); + ImageString ($im, 1, 5, 5, "Error loading $imgname", $tc); } return $im; } @@ -1221,7 +1216,7 @@ function LoadJpeg ($imgname) { - + ImageCreateFromPNG @@ -1239,7 +1234,7 @@ function LoadJpeg ($imgname) { ImageCreateFromPNG returns an image identifier representing the image obtained from the given filename. - + ImageCreateFromPNG returns an empty string on failure. It also outputs an error message, which unfortunately displays as a broken link in a browser. To ease debugging the @@ -1258,7 +1253,7 @@ function LoadPNG ($imgname) { $tc = ImageColorAllocate ($im, 0, 0, 0); ImageFilledRectangle ($im, 0, 0, 150, 30, $bgc); /* Output an errmsg */ - ImageString ($im, 1, 5, 5, "Error loading $imgname", $tc); + ImageString ($im, 1, 5, 5, "Error loading $imgname", $tc); } return $im; } @@ -1267,7 +1262,7 @@ function LoadPNG ($imgname) { - + ImageCreateFromWBMP @@ -1285,7 +1280,7 @@ function LoadPNG ($imgname) { ImageCreateFromWBMP returns an image identifier representing the image obtained from the given filename. - + ImageCreateFromWBMP returns an empty string on failure. It also outputs an error message, which unfortunately displays as a broken link in a browser. To ease debugging the @@ -1304,7 +1299,7 @@ function LoadWBMP ($imgname) { $tc = ImageColorAllocate ($im, 0, 0, 0); ImageFilledRectangle ($im, 0, 0, 10, 10, $bgc); /* Output an errmsg */ - ImageString ($im, 1, 5, 5, "Error loading $imgname", $tc); + ImageString ($im, 1, 5, 5, "Error loading $imgname", $tc); } return $im; } @@ -1313,7 +1308,7 @@ function LoadWBMP ($imgname) { - + ImageCreateFromString @@ -1333,7 +1328,7 @@ function LoadWBMP ($imgname) { - + ImageDashedLine @@ -1352,19 +1347,19 @@ function LoadWBMP ($imgname) { int col - + ImageDashedLine draws a dashed line from x1, y1 to x2, y2 (top left is 0, 0) in image im of color col. - + See also ImageLine. - + ImageDestroy @@ -1378,7 +1373,7 @@ function LoadWBMP ($imgname) { int im - + ImageDestroy frees any memory associated with image im. Im is the image identifier returned by the @@ -1386,7 +1381,7 @@ function LoadWBMP ($imgname) { - + ImageFill @@ -1403,7 +1398,7 @@ function LoadWBMP ($imgname) { int col - + ImageFill performs a flood fill starting at coordinate x, y (top left is 0, 0) with color col in the @@ -1411,7 +1406,7 @@ function LoadWBMP ($imgname) { - + ImageFilledPolygon @@ -1428,7 +1423,7 @@ function LoadWBMP ($imgname) { int col - + ImageFilledPolygon creates a filled polygon in image im. Points is a PHP array containing the @@ -1438,7 +1433,7 @@ function LoadWBMP ($imgname) { - + ImageFilledRectangle @@ -1457,7 +1452,7 @@ function LoadWBMP ($imgname) { int col - + ImageFilledRectangle creates a filled rectangle of color col in image im starting at upper left coordinates @@ -1468,7 +1463,7 @@ function LoadWBMP ($imgname) { - + ImageFillToBorder @@ -1486,7 +1481,7 @@ function LoadWBMP ($imgname) { int col - + ImageFillToBorder performs a flood fill whose border color is defined by border. The starting point for the fill is x, @@ -1495,7 +1490,7 @@ function LoadWBMP ($imgname) { - + ImageFontHeight @@ -1518,7 +1513,7 @@ function LoadWBMP ($imgname) { - + ImageFontWidth @@ -1532,16 +1527,16 @@ function LoadWBMP ($imgname) { int font - + Returns the pixel width of a character in font. - + See also ImageFontHeight and ImageLoadFont. - + ImageGIF @@ -1553,7 +1548,7 @@ function LoadWBMP ($imgname) { int imagegif int im - string + string filename @@ -1626,18 +1621,18 @@ if (ImageTypes() & IMG_GIF) { ImageGif($im); } elseif (ImageTypes() & IMG_JPG) { -... etc. + ... etc. - See also ImagePNG, ImageWBMP, + See also ImagePNG, ImageWBMP, ImageJPEG, ImageTypes. - + ImagePNG @@ -1649,7 +1644,7 @@ elseif (ImageTypes() & IMG_JPG) { Description - int + int imagepng int im @@ -1671,12 +1666,12 @@ ImagePng($im); - See also ImageGIF, ImageWBMP, + See also ImageGIF, ImageWBMP, ImageJPEG, ImageTypes. - + ImageJPEG @@ -1688,10 +1683,10 @@ ImagePng($im); int imagejpeg int im - string + string filename - int + int quality @@ -1713,16 +1708,16 @@ ImagePng($im); JPEG support is only available in PHP if PHP was compiled against GD-1.8 or later. - + - See also ImagePNG, ImageGIF, + See also ImagePNG, ImageGIF, ImageWBMP, ImageTypes. - + ImageWBMP @@ -1734,7 +1729,7 @@ ImagePng($im); int imageWBMP int im - string + string filename @@ -1747,24 +1742,24 @@ ImagePng($im); The filename argument is optional, and if left off, the raw image - stream will be output directly. - By sending an image/vnd.wap.wbmp content-type - using header, you can create + stream will be output directly. + By sending an image/vnd.wap.wbmp content-type + using header, you can create a PHP script that outputs WBMP images directly. WBMP support is only available in PHP if PHP was compiled against GD-1.8 or later. - + - See also ImagePNG, ImageGIF, + See also ImagePNG, ImageGIF, ImageJPEG, ImageTypes. - + ImageInterlace @@ -1776,7 +1771,7 @@ ImagePng($im); int imageinterlace int im - int + int interlace @@ -1792,7 +1787,7 @@ ImagePng($im); - + ImageLine @@ -1811,19 +1806,19 @@ ImagePng($im); int col - + ImageLine draws a line from x1, y1 to x2, y2 (top left is - 0, 0) in image im of color col. + 0, 0) in image im of color col. - + See also ImageCreate and ImageColorAllocate. - + ImageLoadFont @@ -1852,43 +1847,43 @@ ImagePng($im); Font file format - - byte position - C data type - description - + + byte position + C data type + description + - - byte 0-3 - int - number of characters in the font - - - byte 4-7 - int - - value of first character in the font (often 32 for space) - - - - byte 8-11 - int - pixel width of each character - - - byte 12-15 - int - pixel height of each character - - - byte 16- - char - - array with character data, one byte per pixel in each - character, for a total of (nchars*width*height) bytes. - - + + byte 0-3 + int + number of characters in the font + + + byte 4-7 + int + + value of first character in the font (often 32 for space) + + + + byte 8-11 + int + pixel width of each character + + + byte 12-15 + int + pixel height of each character + + + byte 16- + char + + array with character data, one byte per pixel in each + character, for a total of (nchars*width*height) bytes. + + @@ -1899,7 +1894,7 @@ ImagePng($im); - + ImagePolygon @@ -1916,19 +1911,19 @@ ImagePng($im); int col - + ImagePolygon creates a polygon in image id. Points is a PHP array containing the polygon's vertices, ie. points[0] = x0, points[1] = y0, points[2] = x1, points[3] = y1, etc. Num_points is the total number of vertices. - + See also imagecreate. - + ImagePSBBox @@ -1986,26 +1981,26 @@ ImagePng($im); This function returns an array containing the following elements: - - - - 0 - lower left x-coordinate - - - 1 - lower left y-coordinate - - - 2 - upper right x-coordinate - - - 3 - upper right y-coordinate - - - + + + + 0 + lower left x-coordinate + + + 1 + lower left y-coordinate + + + 2 + upper right x-coordinate + + + 3 + upper right y-coordinate + + + @@ -2013,11 +2008,11 @@ ImagePng($im); - - - + --> + ImagePSEncodeFont @@ -2094,7 +2089,7 @@ permits to find a solution. - + ImagePSFreeFont @@ -2113,7 +2108,7 @@ permits to find a solution. - + ImagePSLoadFont @@ -2138,7 +2133,7 @@ permits to find a solution. - + ImagePsExtendFont @@ -2153,10 +2148,10 @@ permits to find a solution. bool imagepsextendfont - int + int font_index - double + double extend @@ -2180,13 +2175,13 @@ permits to find a solution. Description - bool + bool imagepsslantfont - int + int font_index - double + double slant @@ -2198,7 +2193,7 @@ permits to find a solution. - + ImagePSText @@ -2219,24 +2214,24 @@ permits to find a solution. int background int x int y - int + int - space + space - int + int - tightness + tightness - float + float - angle + angle - int + int - antialias_steps + antialias_steps @@ -2296,33 +2291,33 @@ permits to find a solution. This function returns an array containing the following elements: - - - - 0 - lower left x-coordinate - - - 1 - lower left y-coordinate - - - 2 - upper right x-coordinate - - - 3 - upper right y-coordinate - - - - + + + + 0 + lower left x-coordinate + + + 1 + lower left y-coordinate + + + 2 + upper right x-coordinate + + + 3 + upper right y-coordinate + + + + See also imagepsbbox. - + ImageRectangle @@ -2341,7 +2336,7 @@ permits to find a solution. int col - + ImageRectangle creates a rectangle of color col in image im starting at upper left coordinate x1, y1 and ending at bottom right coordinate x2, y2. 0, 0 is the top left @@ -2349,7 +2344,7 @@ permits to find a solution. - + ImageSetPixel @@ -2366,19 +2361,19 @@ permits to find a solution. int col - + ImageSetPixel draws a pixel at x, y (top left is 0, 0) in image im of color col. - - + + See also ImageCreate and ImageColorAllocate. - + ImageSetBrush @@ -2394,21 +2389,21 @@ permits to find a solution. - ImageSetBrush sets the brush image to be - used by all line drawing functions (such as ImageLine - and ImagePolygon) when drawing with the special - colors IMG_COLOR_BRUSHED or IMG_COLOR_STYLEDBRUSHED. - - - You need not take special action when you are finished with a brush, but if you - destroy the brush image, you must not use the IMG_COLOR_BRUSHED or IMG_COLOR_STYLEDBRUSHED - colors until you have set a new brush image! - - This function was added in PHP 4.0.6 + ImageSetBrush sets the brush image to be + used by all line drawing functions (such as ImageLine + and ImagePolygon) when drawing with the special + colors IMG_COLOR_BRUSHED or IMG_COLOR_STYLEDBRUSHED. + + + You need not take special action when you are finished with a brush, but if you + destroy the brush image, you must not use the IMG_COLOR_BRUSHED or IMG_COLOR_STYLEDBRUSHED + colors until you have set a new brush image! + + This function was added in PHP 4.0.6 - - + + ImageSetTile @@ -2424,28 +2419,28 @@ permits to find a solution. - ImageSetTile sets the tile image to be - used by all region filling functions (such as ImageFill - and ImageFilledPolygon) when filling with the special - color IMG_COLOR_TILED. - - - A tile is an image used to fill an area with a repeated pattern. Any - GD image can be used as a tile, and by setting the transparent color index of the tile - image with ImageColorTransparent, a tile allows certain parts - of the underlying area to shine through can be created. - - - You need not take special action when you are finished with a tile, but if you - destroy the tile image, you must not use the IMG_COLOR_TILED color until you have - set a new tile image! - - This function was added in PHP 4.0.6 + ImageSetTile sets the tile image to be + used by all region filling functions (such as ImageFill + and ImageFilledPolygon) when filling with the special + color IMG_COLOR_TILED. + + + A tile is an image used to fill an area with a repeated pattern. Any + GD image can be used as a tile, and by setting the transparent color index of the tile + image with ImageColorTransparent, a tile allows certain parts + of the underlying area to shine through can be created. + + + You need not take special action when you are finished with a tile, but if you + destroy the tile image, you must not use the IMG_COLOR_TILED color until you have + set a new tile image! + + This function was added in PHP 4.0.6 - - - + + + ImageSetThickness @@ -2460,16 +2455,16 @@ permits to find a solution. int thickness - + ImageSetThickness sets the thickness of the lines - drawn when drawing rectangles, polygons, ellipses etc. etc. to - thickness pixels. - - This function was added in PHP 4.0.6 and requires GD 2.0.1 or later + drawn when drawing rectangles, polygons, ellipses etc. etc. to + thickness pixels. + + This function was added in PHP 4.0.6 and requires GD 2.0.1 or later - - + + ImageString @@ -2488,20 +2483,20 @@ permits to find a solution. int col - + ImageString draws the string s in the image identified by im at coordinates x, y (top left is 0, 0) in color col. If font is 1, 2, 3, 4 - or 5, a built-in font is used. - - + or 5, a built-in font is used. + + See also ImageLoadFont. - + ImageStringUp @@ -2520,20 +2515,20 @@ permits to find a solution. int col - + ImageStringUp draws the string s vertically in the image identified by im at coordinates x, y (top left is 0, 0) in color col. If font is 1, 2, 3, 4 - or 5, a built-in font is used. - - + or 5, a built-in font is used. + + See also ImageLoadFont. - + ImageSX @@ -2547,17 +2542,17 @@ permits to find a solution. int im - + ImageSX returns the width of the image identified by im. - + See also ImageCreate and ImageSY. - + ImageSY @@ -2574,14 +2569,14 @@ permits to find a solution. ImageSY returns the height of the image identified by im. - + See also ImageCreate and ImageSX. - + ImageTTFBBox @@ -2604,84 +2599,84 @@ permits to find a solution. This function calculates and returns the bounding box in pixels for a TrueType text. - - - text - - - The string to be measured. - - - - - size - - - The font size in pixels. - - - - - fontfile - - - - The name of the TrueType font file. (Can also be an URL.) - - - - - - angle - - - - Angle in degrees in which text will be - measured. - - - + + + text + + + The string to be measured. + + + + + size + + + The font size in pixels. + + + + + fontfile + + + + The name of the TrueType font file. (Can also be an URL.) + + + + + + angle + + + + Angle in degrees in which text will be + measured. + + + ImageTTFBBox returns an array with 8 elements representing four points making the bounding box of the text: - - - - 0 - lower left corner, X position - - - 1 - lower left corner, Y position - - - 2 - lower right corner, X position - - - 3 - lower right corner, Y position - - - 4 - upper right corner, X position - - - 5 - upper right corner, Y position - - - 6 - upper left corner, X position - - - 7 - upper left corner, Y position - - - + + + + 0 + lower left corner, X position + + + 1 + lower left corner, Y position + + + 2 + lower right corner, X position + + + 3 + lower right corner, Y position + + + 4 + upper right corner, X position + + + 5 + upper right corner, Y position + + + 6 + upper left corner, X position + + + 7 + upper left corner, Y position + + + The points are relative to the text regardless of the angle, so "upper left" means in the top @@ -2696,7 +2691,7 @@ permits to find a solution. - + ImageTTFText @@ -2774,7 +2769,7 @@ Header ("Content-type: image/gif"); $im = imagecreate (400, 30); $black = ImageColorAllocate ($im, 0, 0, 0); $white = ImageColorAllocate ($im, 255, 255, 255); -ImageTTFText ($im, 20, 0, 10, 20, $white, "/path/arial.ttf", +ImageTTFText ($im, 20, 0, 10, 20, $white, "/path/arial.ttf", "Testing... Omega: &#937;"); ImageGif ($im); ImageDestroy ($im); @@ -2791,7 +2786,7 @@ ImageDestroy ($im); - + ImageTypes @@ -2810,8 +2805,8 @@ ImageDestroy ($im); This function returns a bit-field corresponding to the image formats supported by the version of GD linked into PHP. The - following bits are returned, IMG_GIF | IMG_JPG | IMG_PNG | - IMG_WBMP. To check for PNG support, for example, do this: + following bits are returned, IMG_GIF | IMG_JPG | IMG_PNG | + IMG_WBMP. To check for PNG support, for example, do this: ImageTypes @@ -2825,7 +2820,7 @@ if (ImageTypes() & IMG_PNG) { - + read_exif_data @@ -2841,13 +2836,13 @@ if (ImageTypes() & IMG_PNG) { The read_exif_data function reads the - EXIF headers from a JPEG image file. It returns an associative - array where the indexes are the Exif header names and the values - are the values associated with those Exif headers. Exif headers - tend to be present in JPEG images generated by digital cameras, but - unfortunately each digital camera maker has a different idea of how - to actually tag their images, so you can't always rely on a specific - Exif header being present. + EXIF headers from a JPEG image file. It returns an associative + array where the indexes are the Exif header names and the values + are the values associated with those Exif headers. Exif headers + tend to be present in JPEG images generated by digital cameras, but + unfortunately each digital camera maker has a different idea of how + to actually tag their images, so you can't always rely on a specific + Exif header being present. read_exif_data @@ -2894,22 +2889,22 @@ ExifVersion: 0200 - + - - + +