GIMP is one of the best known open source software applications and is often called the open source equivalent of Photoshop. While it does lack some of Photoshop’s more advanced features it is, despite the name, a very powerful image editing tool.
When creating a new image or scaling an image (or anywhere else you might want to enter in an image or layer size) GIMP has the ability to use input field math.