Analysis of php common image image function set

  • 2020-06-19 09:53:51
  • OfStack

gd_info function: Gets information about the currently installed GD library
getimagesize function: Gets the size of the image
image_type_to_extension function: Gets the file suffix for the image type
image_type_to_mime_type function: determines the MIME type of an IMAGETYPE constant
image2wbmp function: Outputs an image to a browser or file in WBMP format
imagealphablending function: Sets the color mixing mode of the image
imageantialias function: Whether to use the antialias(anti-aliasing) function
imagearc function: Draw an elliptical arc
imagechar function: Draw 1 character horizontally
imagecharup function: draws 1 character vertically
imagecolorallocate function: Assigns a color to an image
imagecolorallocatealpha function: Assigns color to 1 image +alpha
imagecolorat function: Gets the color index of a pixel
imagecolorclosest function: Gets the index value of the color closest to the specified color
imagecolorclosestalpha function: Gets the index value of the color closest to the specified color plus opacity
imagecolorclosesthwb function: Gets the black and white index closest to the specified color
imagecolordeallocate function: Cancels image color allocation
imagecolorexact function: Gets the index value of the specified color
imagecolorexactalpha: Gets the index value of the specified color plus transparency
imagecolormatch function: Makes the color of the palette version of an image more compatible with the true color version
imagecolorresolve function: Gets the index value of the specified color or the closest alternative possible
imagecolorresolvealpha function: Gets the index value of the specified color transparency or the closest alternative possible
imagecolorset function: Sets the color for the specified palette index
imagecolorsforindex function: Gets the color of an index
imagecolorstotal function: Gets the number of colors in the palette of 1 image
imagecolortransparent function: Defines a color as transparent
imageconvolution function: Apply for a 3*3 convolution matrix
imagecopy function: Copies part 1 of the image
imagecopymerge function: Copies and merges part 1 of the image
imagecopymergegray function: Copies and merges part 1 of the image with grayscale
imagecopyresampled function: Resampling copies part of the image and resizing it
imagecopyresized function: Copy part of the image and resize it
imagecreate function: Create a new image based on the palette

imagecreatefromgd2 function: Create a new image from the GD 2 file or URL
imagecreatefromgd2part function: Create a new image from a given GD 2 file or part 1 of URL
imagecreatefromgd function: Create a new image from the GD file or URL
imagecreatefromgif function: Create 1 image from the GIF file or URL
imagecreatefromjpeg function: Create 1 image from the JPEG file or URL
imagecreatefrompng function: Create a new image from the PNG file or URL
imagecreatefromstring function: Creates a new image from the image stream in the string
imagecreatefromwbmp function: Create a new image from the WBMP file or URL
imagecreatefromxbm function: Create 1 image from the XBM file or URL
imagecreatefromxpm function: Create 1 image from the XPM file or URL
imagecreatetruecolor function: Create 1 true color image
imagedashedline function: Draw a dotted line
imagedestroy function: destroys 1 image
imageellipse function: Draw an ellipse
imagefill function: Fills 1 area with the specified color
imagefilledarc function: Draw 1 elliptical arc and fill in
imagefilledellipse function: Draw an ellipse and fill it
imagefilledpolygon: Draws a polygon and fills it
imagefilledrectangle function: Draw a rectangle and fill it
imagefilltoborder function: The area is filled to the edge of the specified color
imagefilter function: Use a filter on the image
imagefontheight function: Gets font height
imagefontwidth function: Gets font width
imageftbbox function: Gives a text box that USES the FreeType2 font
imagefttext function: Writes text to an image using the FreeType2 font
imagegammacorrect function: Apply gamma modification to GD image
imagegd2 function: Outputs GD 2 images to a browser or file
imagegd function: Outputs an GD image to a browser or file
imagegif function: Outputs an image to a browser or file in GIF format
imageinterlace function: Activates or disables interlaced scanning
imageistruecolor function: Check if the image is a true color image
imagejpeg function: Outputs an image to a browser or file in JPEG format
imagelayereffect function: Sets the alpha color blending flag to use the binding libgd layering effect
imageline function: Draw 1 line segment
imageloadfont function: Loads a new font
imagepalettecopy function: Copies the palette from one image to another
imagepng function: Outputs an image to a browser or file in PNG format
imagepolygon function: draw 1 polygon
imagepsbbox function: Gives a text box that USES the PostScript Type1 font
imagepsencodefont function: Changes the character encoding vector in the font
imagepsextendfont function: Expand or simplify fonts
imagepsfreefont function: Frees the memory occupied by one PostScript Type1 font
imagepsloadfont function: Loads an PostScript Type1 font from a file
imagepsslantfont function: Tilts a font
imagepstext function: Draws a text string on an image using the PostScript Type1 font
imagerectangle function: Draw a rectangle
imagerotate function: Rotate the image at a given Angle
imagesavealpha function: Sets the tag to hold the full alpha channel information when saving the PNG image
imagesetbrush: Sets the brush image used to draw the line
imagesetpixel function: Draw a single pixel
imagesetstyle function: Sets the style of the line
imagesetthickness function: Sets the width of the line
imagesettile function: Sets the map used for filling
imagestring function: Draws a 1 line string horizontally
imagestringup function: Draws a 1-line string vertically
imagesx function: Gets the image width
imagesy function: Gets the image height
imagetruecolortopalette function: Converts a true color image to a palette image
imagettfbbox function: Gets the range of text using the TrueType font
imagettftext function: Writes text to the image in the TrueType font
imagetypes function: Returns the type of image supported by the current version of PHP
imagewbmp function: Outputs an image to a browser or file in WBMP format
imagexbm function: Outputs an XBM image to a browser or file
iptcembed function: Embed base 2 IPTC data into an JPEG image
iptcparse function: Resolves the base 2 IPTC block to a single tag
jpeg2wbmp function: Converts JPEG image file to WBMP image file
png2wbmp function: Converts PNG image file to WBMP image file


Related articles: