Image Resize with PIL
<p>Input image size dimension (a,b)</p>

<p>output image size (c,d) where c> =k and d >= k</p>

<p>Example:
 input image(900,600) with minimum dimension k= 400</p>

<p>then output image should be (600,400) </p>

<p>Is there any function from PIL.Image to achieve this goal?</p>