ConvertImage
ConvertImage PHP Methods
$allowGIF v5
bool
Default value = true $allowJPEG v5
bool
Default value = true $allowPNG v5
bool
Default value = true $convertIconToJPEG v5
bool
Default value = true $convertMedToJPEG v5
bool
Default value = true $convertSmallToJPEG v5
bool
Default value = true $cropOverflow v5
bool
Default value = true $medExt v5
string $medHeight v5
int
Default value = 0 $medWidth v5
int
Default value = 0 $privateFolder v5
bool
Default value = false addMed(int $imgWidth = 400, int $imgHeight = 400, string $medExt = "-med") v5
Set medium image size settings for the uploaded images
PARAMETERS:
$imgWidth = int, medium image width in PX
$imgHeight = int, medium image height in PX
$medExt = int, medium image extension
RETURN VALUE:
VOID convert(string $originalImage, string $newImage = "") v5
Convert uploaded images to jpg
PARAMETERS:
$newImage = string, new image name
$originalImage = string, original image name
RETURN VALUE:
VOID doNotConvertToJPEG() v5
don't convert images to JPG
PARAMETERS:
NONE
RETURN VALUE:
VOID getPath() v5
Get folder's full path
PARAMETERS:
NONE
RETURN VALUE:
String = full path openImage(string $file) v5
Open an image file. can be used to check if the image is valid
PARAMETERS:
$file = string, image file name
RETURN VALUE:
VOID setAllowOnlyJPEG() v5
Allow only upload JPG
PARAMETERS:
NONE
RETURN VALUE:
VOID setConvertIconToJPEG(bool $convertIt) v5
convert the uploaded image to icon settings
PARAMETERS:
$convertIt = bool, true to create a jpg for an icon
RETURN VALUE:
VOID setConvertMedToJPEG(bool $convertIt) v5
Convert the medium uploaded image to jpg settings
PARAMETERS:
$convertIt = bool, true to allow convert the medium uploaded image to jpg settings
RETURN VALUE:
VOID setConvertSmallToJPEG(bool $convertIt) v5
Convert the emall uploaded image to jpg settings
PARAMETERS:
$convertIt = bool, true to allow convert the emall uploaded image to jpg settings
RETURN VALUE:
VOID setPrivateFolder(bool $isPrivate = true) v5
Set upload private folder
PARAMETERS:
$isPrivate = bool, true to set private folder on, false otherwise
RETURN VALUE:
VOID upload(string $fileValue, string $newFileName, string $origFileName) v5
Upload a file
PARAMETERS:
$fileValue = string, uploaded file value
$newFileName = string, new file name
$origFileName = string, original file name
RETURN VALUE:
string = the uploaded filenameConvertImage PHP Variables
🔎︎ %l4610%