$errorMessages
$errorMessages : array
An array of messages created when something goes wrong with the image manipulation
Class that is used to apply users requested changes to the image that they have uploaded as their profile picture
rotateAndResize(array $params, integer $userId) : boolean
Rotate, resize image and convert to final image format and save where required
array | $params | merged post and file parameters |
integer | $userId | user's id which will be the name of the file on success. |
whether the whole procedure was a success
rotateImage(resource $source, string $fileName, integer $rotation, string $extension)
Rotate the image and save to new location in rotated folder the remove the original (unrotated) image file
resource | $source | image resource identifier |
string | $fileName | the name of the file |
integer | $rotation | rotation (multiple of 90) |
string | $extension | the file extension (lowercase) |