PHP_image_resize icon indicating copy to clipboard operation
PHP_image_resize copied to clipboard

Cropping not resizing

Open Khalilbz opened this issue 8 years ago • 2 comments

The new image created is being cropped not resized. For example i upload an image of 500x500 and give a new dimension of 300x300. This crops the image which makes it lose some parts of it. Please how can i get the full image to be displayed(something like shrink) but with the new dimensions. Thank you.

This question is asked before but the solution was given in HTML but I want to make the function work, I mean tell me what to do to make the PHP function do that, so please help

Khalilbz avatar Oct 13 '16 11:10 Khalilbz

did you try setting $proportional to true ?

Nimrod007 avatar Oct 26 '16 17:10 Nimrod007

Ok , I will try and thanks for your reply, For me I liked the way how it works I mean maybe I won't need to make it resize the pictures but other users may want to resize their picture not crop, So I wish it works, and thank you again :) :) :) :+1:

Khalilbz avatar Oct 26 '16 19:10 Khalilbz