TwistPHP Documentation

Image

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

Type: Model

Image — Image object that allow the manipulation of images, adding text, inserting watermarks, applying effects, resizing and altering output quality. The object can both import and export an image in Base64 encoding and Raw image source. Images can be served to screen our output as a file if required.

Example Usage

<?php
//Set the variables for the example
$mxdImage 'foo-123';

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

Method List

Method Access Returns
__constructconstructvoid
__destructpublicvoid
loadprotectedvoid
createprotectedvoid
originalInfopublicvoid
currentInfopublicvoid
savepublicvoid
outputpublicvoid
outputBase64publicvoid
outputRawprotectedvoid
resourcepublicvoid
aspectRatioprotectedvoid
detectOrientationprotectedvoid
normalizeColorprotectedvoid
keepWithinRangeprotectedvoid
fillpublicvoid
linepublicvoid
rectanglepublicvoid
polygonpublicvoid
stringpublicvoid
flippublicvoid
opacitypublicvoid
rotatepublicvoid
copypublicvoid
croppublicvoid
resizeWidthpublicvoid
resizeHeightpublicvoid
resizeMaxWidthpublicvoid
resizeMaxHeightpublicvoid
resizeMaxDimensionpublicvoid
resizepublicvoid
resizeCoverpublicvoid
resizeContainpublicvoid
antialiaspublicvoid
filterBlurpublicvoid
filterBrightnesspublicvoid
filterColorizepublicvoid
filterContrastpublicvoid
filterDesaturatepublicvoid
filterEdgespublicvoid
filterEmbosspublicvoid
filterInvertpublicvoid
filterMeanRemovalpublicvoid
filterPixelatepublicvoid
filterSepiapublicvoid
filterSketchpublicvoid
filterSmoothpublicvoid
watermarkpublicvoid