I have a server side script that gets the HTML contents of a URL. I need it to get the computed width of elements (specifically images) as the browser would render if with all the CSS attributes applied to it. Something that will do what qQuery's .width method does but in PHP.
Are there any libraries out there capable of doing this? I've heard of Rhino but I am not sure if it has this specific capability.