[jQuery] Smart image resizing "Idea"

[jQuery] Smart image resizing "Idea"


Smart image resizing "Idea"
Dears,
I am new to JQuery.I have an idea I want to share with you and i hope
one of the programmer write the code for it.
the idea is to resize an image to a custom width and keeping the
relation between the width and height ,for example:
* if the width less than 600px ---> do nothing "no need to change"
*if the width =1000 and height=500 ----> reside to: width=500 and
height=250 "the height is still 50% of the width"
*when the resided image is clicked, pop up a windows with the original
size
*above the image, write "click here to enlarge"
I hope you got the idea, and I hope one if you write the code for it
or please help me how could I do it.