PHP Class Goose\Images\ImageUtils

Show file Open project: scotteh/php-goose Class Usage Examples

Public Methods

Method Description
getImageDimensions ( string $filePath ) : object
storeImagesToLocalFile ( string[] $imageSrcs, boolean $returnAll, Configuration $config ) : Goose\Images\LocallyStoredImage[] Writes an image src http string to disk as a temporary file and returns the LocallyStoredImage object that has the info you should need on the image

Private Methods

Method Description
getFileExtensionName ( object $imageDetails ) : string
handleEntity ( string[] $imageSrcs, boolean $returnAll, Configuration $config ) : object[] | null

Method Details

getImageDimensions() public static method

public static getImageDimensions ( string $filePath ) : object
$filePath string
return object

storeImagesToLocalFile() public static method

Writes an image src http string to disk as a temporary file and returns the LocallyStoredImage object that has the info you should need on the image
public static storeImagesToLocalFile ( string[] $imageSrcs, boolean $returnAll, Configuration $config ) : Goose\Images\LocallyStoredImage[]
$imageSrcs string[]
$returnAll boolean
$config Goose\Configuration
return Goose\Images\LocallyStoredImage[]