Okay I know it sounds like it's a repost of another question, but I couldn't find anybody asking the same question as I do, or maybe I'm wrong because that's not the way how to handle the problem, but anyway here it comes:
I have an input image, say HD 1920*1080 and I just know a scale factor: say, 0.3 ( 30% of original size). How would one compute the new target size that is close to 30% of the original, while keeping the aspect ratio ? In other words how to rescale the image to 30% accurately?
If this makes no sense, please could you enlighten me about how to scale an image without knowing the target size and just knowing a scale factor?
Thanks
Ps: I'm using C/C++, but pseudo-code is okay