Ok, im new to php and trying to develop an app that allows me to upload image then resize them only on the output, i managed to save the image on the server in a folder, now i want to be able to display this images on the site in different sizes depending on what part of the site. like thumbnails and a bigger scale ect...
so far i have this code
$image_properties = getimagesize("uploads/orders.jpg");
$image_width = $image_properties;
$image_height = $image_properties;
$image_ratio = $image_width / $image_height;
here i trying to divide the image by half... i no im a long way off i thought this would work due to retrieving the image size properties then dividing it by half, then echoing it out in an image tag, haha....
eventually i would like to master this and be able to change the size by assigning numbers to variable, keeping the size proportions.
help on this topic would be great, i serious need it breaking down, am i far off?