Does anyone have a good algorithm for calculating the max size of an image based off its proportions?
I can get the image size(width height) and the image type(gif,jpg,bmp), but I'm not sure if there is a way to get (for example) the number of colors of a GIF and then comparing it to a predefined value for say like a 200x200 gif should be 2K or something like that?
Or is there a better algorithm to do this?
thanx in adavance!