PHP Class Goose\Images\ImageUtils

Afficher le fichier Open project: scotteh/php-goose Class Usage Examples

Méthodes publiques

Méthode 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

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

Method Details

getImageDimensions() public static méthode

public static getImageDimensions ( string $filePath ) : object
$filePath string
Résultat object

storeImagesToLocalFile() public static méthode

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
Résultat Goose\Images\LocallyStoredImage[]