TwistPHP Documentation

resize

File path: dist/twist/Core/Models/Image/Image.model.php
Namespace: Twist\Core\Models\Image
Extends:

resizeResize the image to specified dimensions provided in the width and height parameters

Parameters

Name Type Description
$intWidthintegern/a
$intHeightintegern/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$intWidth 124;
$intHeight 124;

//Call the function resize with the example vars
$resImage = new \Twist\Core\Models\Image\Image();
$resImage -> resize($intWidth$intHeight);