I am working on a small PHP script, in a page I have a list of images like this :
<image xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.wired.com/wp-content/uploads/2015/09/google-logo-1200x630.jpg" >
</image>
what i need is to add a width and height attribute for each images so i can get this
<image xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.wired.com/wp-content/uploads/2015/09/google-logo-1200x630.jpg" width="1200" height="630" >
</image>
PS: The width and the height of the image should be automatically calculated based on the link of the picture. Is it possible to do this using Jquery or javascript ?