How can i make so that if the image are smaller then lets say 640x480 it shouldnt drag it so it will fit 640x480
This will only make the images look bad and be in bad quality.
It should only make images bigger than 640x480 smaller to fit 640x480.
And if a image are lets say 320 in height and 2000px in width it should only change the image width and not the height.
Hope you understand where im going.