Simplify an integer ratio and scale its components by a chosen factor.
JavaScript is required. File-service operations request explicit consent before upload.