Download the PHP package soysaltan/imagify without Composer
On this page you can find all versions of the php package soysaltan/imagify. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package imagify
Imagify
Imagify simplifies your image upload process, does not tire you.
Installation
Add JQuery and Imagify source files. (best practice)
or
... and you are ready to go.
EVENTS
onInit (elm):
This event runs the first time the imafigy element is called and and returns the rendered element itself.
Example :
-
Background color becomes red when the div element is rendered with imagify.
onSuccess (elm,source):
The rendered element has been attributed with data-src key
Example :
- Log the selected image's base64 code.
elm : The rendered element source : Base64 code of the selected image
onError (errorId):
Returns the errorId information for the error.
Example :
- Background color becomes red when the div element is rendered with imagify.
errorId : The error id of the error information. It could be :
onDimensionError:
Fires when image dimension error occurred.
Example :
- Fire the dimension error when the specified attributes in the html.
or you can specify the attributes in the javascript side.Dimensions in px.
file : The selected image file element.
onMinSizeError:
Fires when minimum image size error occurred.
Example :
-
Fire the minimum image size error when the specified attributes in the html.
onMaxSizeError:
Fires when maximum image size error occurred.
Example :
-
Fire the maximum size error when the specified attributes in the html.
onAllowedExtError:
Fires when image extension error occurred.
Example :
- Fire the image extension error when the specified attributes in the html.