• Campus Karma

Login

Image Upload and Resize without loosing aspect ratio

    Chandan D Nadig
    By Chandan D Nadig

    Hello guys, I am very new to coding and php seems to fescinate me a lot. I am trying to learn as many functionalities as possible everyday. I'm trying to execute an Image uploading function and I finding it very difficult to do it precisely. My expectations are:

    1. Image should be resized if it exceeds 500kb

    2. Aspect ratio of the image should be maintained, it shouldn't be cropped un-desirably.

    3. A jquery crop function if someone chooses to crop the image

    Any sort of tutorial or Source Code would help :-) thank you