resize, crop from center an image with javascript
<p>Wonder if anyone can help, I'm looking for a way to take an image path which will be varying sizes - and then create a fixed height and width thumbnail (136x75) from that, cropping from the center point.</p>

<p>I can't really do this in PHP as I need to do this on the fly in the js because Im reading a xml file which contains the image paths, and loading them in via javascript.</p>

<p>I'm just trying to find a script or build one, which will figure out weather to size to the width or height (depending on landscape or portrait ratio of orginal image?) and then crop from the center to the final 136x75</p>

<p>Anyone got any good suggestions on how to do this, or an existing solution ?</p>

<p>Thanks for looking,</p>
