take an image portion

I made a calculation of the proportion between width and height from the maximum dimensions and the same thing from
actual dimensions of the picture: I then compared the two resizing in the appropriate direction depending on whether the result is
positive or negative.
Finally, my code works:)
For cons, I still have that to make a thumbnail of my image, the principle and calculated the center of the height and width of the image and make a thumbnail from the center as shown in the image

www.mestestes.eu / proportion.jpg
I await your comments
Here is my code that works well

Le nom de l'image redimensionner avec 95 ,95




if( isset($_POST['upload']) ) // si formulaire soumis
$content_dir = 'upload/'; // dossier o
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!