Create a folder in the web root, create a PHP file and add the following code, upload an image into the same directory, give write permissions to Apache or user to folder.
<? exec("convert /path/image.jpg -resize 1150x1150 /path/newimage.jpg") ?>
Create a folder in the web root, create a PHP file and add the following code, upload an image into the same directory, give write permissions to Apache or user to folder.
<? exec("convert /path/image.jpg -resize 1150x1150 /path/newimage.jpg") ?>