User1417933 84522 gold badges1111 silver badges1414 bronze badges 1 There appear to be python bindings to ImageMagick: imagemagick.org/download/python. I haven't utilised them, but I've applied ImageMagick, and it'll do what you want. user1342784 From there, it was only a brief way to utilize the aforementioned equation and work out the https://imageconverthq.com/