TwistPHP Documentation

resizeWidth

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

resizeWidthProportionally resize to a specified width (scales up and down the image as required)

Parameters

Name Type Description
$intWidthintegern/a

Return Values

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

Example

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

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