I am trying to get the image width from the url of the image. Is that possible ??
What i am trying to do is, if a user uploads image from the editor and if the width of image uploaded is greater than 700px then i will resize the image and use that in place of the original one. I am grabbing all the images in the editor like this
$doc = new DOMDocument();
$doc->loadHTML($this->PageAdvancedPopup_html);
$imageTags = $doc->getElementsByTagName('img');
foreach($imageTags as $tag) {
$imgs = $tag->getAttribute('src');
echo "<img src='/$imgs' />";
}
Now how can i check the width of these image ??
Please help me I am stuck...