Blog Archives

How to get image dimensions in Python

Thanks to Pygame, there’s a quick and easy method to get the dimensions of an image. You just have to load it into a Surface and use the Surface methods get_height() and get_width().

Tagged with: , ,
Posted in Coding

How to get image dimensions in Java

Earlier this week I Googled for how to find the dimensions of an image using Java, and most of the solutions were way more complicated than they needed to be. Most of what I came across was code that opened

Tagged with: ,
Posted in Coding