Method | Description | |
---|---|---|
deleteImageVariations ( string $user, string $imageIdentifier, integer $width = null ) : boolean | Remove all metadata about image variations for an image | |
getBestMatch ( string $user, string $imageIdentifier, integer $width ) : integer | null | Fetch the best match of an image | |
storeImageVariationMetadata ( string $user, string $imageIdentifier, integer $width, integer $height ) : boolean | Store an image variation |
public getBestMatch ( string $user, string $imageIdentifier, integer $width ) : integer | null | ||
$user | string | The user which the image belongs to |
$imageIdentifier | string | The image identifier of the original |
$width | integer | The width we want to resize the image to |
return | integer | null | Returns the closest width, or null |
public storeImageVariationMetadata ( string $user, string $imageIdentifier, integer $width, integer $height ) : boolean | ||
$user | string | The user which the image belongs to |
$imageIdentifier | string | The image identifier of the original |
$width | integer | The width of the variation |
$height | integer | The height of the variation |
return | boolean |