File path: dist/twist/Core/Models/Image/Image.model.php
Namespace: Twist\Core\Models\Image
resizeCover
— Get the image to as close to the provided dimensions as possible, and then crops the remaining overflow (from the center) to get the image to be the size specified. Useful for generating thumbnails.
Name | Description |
---|---|
$intWidth | n/a |
[$intHeight = null] | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$intWidth = 124;
$intHeight = null;
//Call the function resizeCover with the example vars
$resImage = new \Twist\Core\Models\Image\Image();
$resImage -> resizeCover($intWidth, $intHeight);