TwistPHP Documentation

save

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

saveSave the image as a file, the format will be determined by the file extension. Leaving the file name as null will use the original filename.

Parameters

Name Type Description
[$strFilename = null]stringn/a
[$intQuality = null]integern/a

Return Values

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

Example

<?php
//Set the variables for the example
$strFilename null;
$intQuality null;

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