Home >Backend Development >PHP Tutorial >Parsing the set of commonly used image image functions in PHP

Parsing the set of commonly used image image functions in PHP

高洛峰
高洛峰Original
2016-12-26 12:42:381401browse

gd_info function: Get information about the currently installed GD library
getimagesize function: Get the size of the image
image_type_to_extension function: Get the file suffix of the image type
image_type_to_mime_type function: Determine the MIME type of an IMAGETYPE constant
image2wbmp function: Output the image to a browser or file in WBMP format
imagealphablending function: Set the color mixing mode of the image
imageantialias function: Whether to use the antialias (anti-aliasing) function
imagearc function: Draw an ellipse Arc
imagechar function: draw a character horizontally
imagecharup function: draw a character vertically
imagecolorallocate function: assign color to an image
imagecolorallocatealpha function: assign color+alpha to an image 
imagecolorat function: Get the color index value of a certain pixel
imagecolorclosest function: Get the index value of the color closest to the specified color
imagecolorclosestalpha function: Get the index value of the color closest to the specified color plus transparency
imagecolorclosesthwb function: Get the black and white index of the chroma closest to the specified color
imagecolordeallocate function: Cancel the allocation of the image color
imagecolorexact function: Get the index value of the specified color
imagecolorexactalpha function: Get the specified color Add transparency index value
imagecolormatch function: Make the palette version of the color in an image more closely match the true color version
imagecolorresolve function: Get the index value of the specified color or the closest possible replacement value
imagecolorresolvealpha function: Get the index value of the specified color transparency or the closest alternative value possible
imagecolorset function: set the color for the specified palette index
imagecolorsforindex function: get the color of a certain index
imagecolorstotal function: get the number of colors in the palette of an image
imagecolortransparent function: define a color as a transparent color
imageconvolution function: apply for a 3*3 convolution matrix
imagecopy Function: Copy a part of the image
imagecopymerge function: Copy and merge a part of the image
imagecopymergegray function: Copy and merge a part of the image in grayscale
imagecopyresampled function: Resample copy a part of the image and resize
imagecopyresized function: copy part of the image and resize it
imagecreate function: create a new palette-based image

imagecreatefromgd2 function: Create a new image from a GD 2 file or URL
imagecreatefromgd2part function: Create a new image from a part of a given GD 2 file or URL
imagecreatefromgd function: Create a new image from a GD file or URL An image
imagecreatefromgif function: Create a new image from a GIF file or URL
imagecreatefromjpeg function: Create a new image from a JPEG file or URL
imagecreatefrompng function: Create a new image from a PNG file or URL
imagecreatefromstring function: Create a new image from the image stream in the string
imagecreatefromwbmp function: Create a new image from a WBMP file or URL
imagecreatefromxbm function: Create a new image from an XBM file or URL
imagecreatefromxpm function: From Create a new image in an XPM file or URL
imagecreatetruecolor function: create a new true color image
imagedashedline function: draw a dotted line
imagedestroy function: destroy an image
imageellipse function: draw an ellipse
imagefill Function: fill an area with the specified color
imagefilledarc function: draw an elliptical arc and fill it
imagefilledellipse function: draw an ellipse and fill it
imagefilledpolygon function: draw a polygon and fill it
imagefilledrectangle function: draw an Rectangle and fill it
imagefilltoborder function: fill the area to the boundary of the specified color
imagefilter function: use a filter on the image
imagefontheight function: get the font height
imagefontwidth function: get the font width
imageftbbox Function: Given a text box using FreeType2 font
imagefttext function: Write text to image using FreeType2 font
imagegammacorrect function: Apply gamma correction to GD image
imagegd2 function: Output GD 2 image to browser Browser or file
imagegd function: Output GD image to browser or file
imagegif function: Output image to browser or file in GIF format
imageinterlace function: Activate or disable interlacing
imageistruecolor Function: Check whether the image is a true color image
imagejpeg function: Output the image to a browser or file in JPEG format
imagelayereffect function: Set the alpha mixing flag to use the bound libgd layering effect
imageline Function: Draw a line segment
imageloadfont function: Load a new font
imagepalettecopy function: Copy the palette from one image to another
imagepng function: Output the image to the browser in PNG format Or file
imagepolygon function: draw a polygon
imagepsbbox function: give a text box using PostScript Type1 font
imagepsencodefont function: change the character encoding vector in the font
imagepsextendfont function: expand or simplify the font
imagepsfreefont function: release the memory occupied by a PostScript Type1 font
imagepsloadfont function: load a PostScript Type1 font from a file
imagepsslantfont function: tilt a certain font
imagepstext function: use PostScript Type1 font to convert text String is drawn on the image
imagerectangle function: Draws a rectangle
imagerotate function: Rotates the image with a given angle
imagesavealpha function: Sets the flag to save the complete alpha channel information when saving the PNG image
imagesetbrush function: Set the brush image for line drawing
imagesetpixel function: Draw a single pixel
imagesetstyle function: Set the style of line drawing
imagesetthickness function: Set the width of line drawing
imagesettile Function: Set the texture used for filling
imagestring function: Draw a line of string horizontally
imagestringup function: Draw a line of string vertically
imagesx function: Get the image width
imagesy function: Get the image Height
imagetruecolortopalette function: Convert true color image to palette image
imagettfbbox function: Get the range of text using TrueType font
imagettftext function: Write text to image using TrueType font
imagetypes function : Returns the image type supported by the current PHP version
imagewbmp function: Outputs the image to the browser or file in WBMP format
imagexbm function: Outputs the XBM image to the browser or file
iptcembed function: Converts the binary IPTC data is embedded in a JPEG image
iptcparse function: parses binary IPTC blocks into individual tags
jpeg2wbmp function: converts a JPEG image file to a WBMP image file
png2wbmp function: converts a PNG image file to WBMP Image files

For more articles related to parsing the commonly used image function sets in PHP, please pay attention to the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn