⭐ in reply to How can I get image height and width without using Image::Size?
But if you want to avoid using modules entirely you're going to have to learn how to read image headers. The headers are different for different types of images (.jpg, .png, etc...). But in general most image files have the height and width stored (generally as 16 or 32 bit integers) somewhere within the first 100 bytes or so of the image.
|
|---|