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';
$blAlphaBlending true;

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

Method List

Method Access Returns
__constructconstructvoid
__destructpublicvoid
loadprotectedvoid
createprotectedvoid
originalInfopublicvoid
currentInfopublicvoid
savepublicvoid
outputpublicvoid
outputBase64publicvoid
outputRawprotectedvoid
resourcepublicvoid
aspectRatioprotectedvoid
detectOrientationprotectedvoid
fixOrientationpublicvoid
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