Only works with gif, jpg and png file types. If you want to change this also have a look into
method validateImageFile() inside this model.
TROUBLESHOOTING: You don't see the new image ? Press F5 or CTRL-F5 to refresh browser cache.
public static resizeAvatarImage ( string $source_image, string $destination, integer $final_width = 44, integer $final_height = 44 ) : boolean | ||
$source_image | string | The location to the original raw image |
$destination | string | The location to save the new image |
$final_width | integer | The desired width of the new image |
$final_height | integer | The desired height of the new image |
Résultat | boolean | success state |