title: how to resize video image, image path fetched from json
body: <p>I am getting data from youtube based on video id using json.</p>
  
  <p>This code is working properly. I am fetching image path based on image id.
  now I would like  to resize the image(original image size is approx 408X306) i want to resize it 200px X200px</p>
  
  <p>I am getting only url of video image</p>
  
  <p>How to do this. </p>
  
  <p>I am using jquery,java,struts2. </p>
  
  <p>My code is</p>
  
  <pre><code>var video_id=KsnHky4wv5w;
  
  $.getJSON('http://gdata.youtube.com/feeds/api/videos/'+video_id+'?v=2&amp;alt=jsonc',function(data,status,xhr){
  
           alert(' \nImage path:'+data.data.thumbnail.hqDefault);
  
  
          }); 
  </code></pre>