hi I am using Jtidy parser in java.
URL url = new URL(\"http://l1.yimg.com/t/frontpage/baba-ramdev-310511-60.jpg\"); Image image = new ImageIcon(url).g
This is one of the simplest method to find the dimensions of image.
URL url=new URL("Any web image url"); BufferedImage image = ImageIO.read(url); int height = image.getHeight(); int width = image.getWidth(); System.out.println("Height : "+ height); System.out.println("Width : "+ width);