in reply to image size in k

Image::ExifTool will read the headers of most images and tell you what size the image is, its width, height, and bits per pixel. It'll even give you extra headers if you want (like camera model and make, settings, etc).