in reply to Image Size

Is there a way to do it with no modules?

Extract the appropriate parts of Image::Info and embed them in your script. It's a small module.