I am trying to get the height and width of images (via a url) in Java without an ImageObserver. My current code is:
height
width
public static v
Following should work
Image image = Toolkit.getDefaultToolkit().getImage(image_url); ImageIcon icon = new ImageIcon(image); int height = icon.getIconHeight(); int width = icon.getIconWidth(); sb.append(line + ","+ height + "," + width + newline);