Simplify an image ratio and calculate a matching output height.
On your device. No uploads or sign-in.