ImageUtils
    
            
            in package
            
        
    
    
    
A utility class for carrying out various image file tasks.
Tags
Table of Contents
Methods
- generateSquareThumbnail() : void
- Generates a perfectly square thumbnail from the supplied original image file.
- saveImage() : void
- Saves the GD image resource to the file path indicated.
Methods
generateSquareThumbnail()
Generates a perfectly square thumbnail from the supplied original image file.
    public
            static        generateSquareThumbnail(string $original, string $thumbnail, int $dimensions) : void
    Parameters
- $original : string
- 
                    The path to the original file 
- $thumbnail : string
- 
                    The path to the new thumbnail file to generate 
- $dimensions : int
- 
                    The width/height of the generated thumbnail 
Tags
saveImage()
Saves the GD image resource to the file path indicated.
    public
            static        saveImage(resource $imageResource, string $type, string $destination) : void
    Parameters
- $imageResource : resource
- 
                    The GD image resource to save 
- $type : string
- 
                    The image type (jpg, png, or gif) 
- $destination : string
- 
                    The desination file path of the image file to create