Image_JPEG_Upload
class Image_JPEG_Upload extends ImageUploadTransformationsPlugin (View source)
Handles the image upload input transformation for JPEG.
Has two option: width & height of the thumbnail
Properties
protected bool | $success | Specifies whether transformation was successful or not. |
from IOTransformationsPlugin |
protected string | $error | To store the error message in case of failed transformations. |
from IOTransformationsPlugin |
Methods
Returns true if the element requires no wrapping
Returns passed options or default values if they were not set
Returns the html for input field to override default textarea.
Returns the array of scripts (filename) required for plugin initialization and handling
Gets the transformation description of the specific plugin
Does the actual work of each specific transformations plugin.
Gets the transformation name of the specific plugin
Gets the plugin`s MIME type
Gets the plugin`s MIME subtype
Details
bool
applyTransformationNoWrap(array $options = [])
Returns true if the element requires no wrapping
array
getOptions(array $options, array $defaults)
Returns passed options or default values if they were not set
string
getInputHtml(string $columnNameAppendix, array $options, string $value, int $fieldIndex)
Returns the html for input field to override default textarea.
Note: Return empty string if default textarea is required.
array
getScripts()
Returns the array of scripts (filename) required for plugin initialization and handling
string
getError()
Returns the error message
bool
isSuccess()
Returns the success status
void
reset()
Resets the object properties
static string
getInfo()
Gets the transformation description of the specific plugin
string
applyTransformation(string $buffer, array $options = [], FieldMetadata|null $meta = null)
Does the actual work of each specific transformations plugin.
static string
getName()
Gets the transformation name of the specific plugin
static string
getMIMEType()
Gets the plugin`s MIME type
static string
getMIMESubtype()
Gets the plugin`s MIME subtype