title: How can I dynamically set the image size ratio depending on the returned image in raphael?
body: <p>How can I dynamically set the image size ratio depending on the returned image in raphael?</p>
  
  <p>Here is some code to give you an idea:</p>
  
  <pre><code>var viewer = Raphael(0,0,scrWidth, scrHeight);
  viewer.image(dynamicUrl, 140, 140,300, scaledHeight);
  </code></pre>
  
  <p>Thank you</p>