ImageUploader Class
Class to upload images (JPEGs or PNGs only). Located in the namespace Canteen\Media.
Constructor
Methods
createThumbnail
(
Boolean
-
width
-
height
-
jpegQuality
-
[mode=ImageResizer::RESIZE_MAX_FILL_CROP]
-
[postfix='.tn']
Create a thumbnail image
Parameters:
Returns:
Boolean:
If the upload was successful
resize
(
-
width
-
height
-
[mode=ImageResizer::RESIZE_MAX_FILL_CROP]
Resize the image
Parameters:
-
width
IntThe width of the image
-
height
IntThe height of the image
-
[mode=ImageResizer::RESIZE_MAX_FILL_CROP]
String optionalThe mode of the resize