TwistPHP Documentation

resizeMaxWidth

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

resizeMaxWidthProportionally resize to a specified width (scales up and down the image ONLY, if scaling up is required look at @alias resizeToWidth)

Parameters

Name Type Description
$intMaxWidthintegern/a

Return Values

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

Example

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

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