Making the width/lenght input fields match the proportions of the photo

Hi, i am using woocomerce with uni cpo for the custom fields/price calculations and drag and drop files for woocommerce. How would i go about making one of the input fields affect the other ones values, according to the uploaded image's proportions?(I'm new to wordpress)

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer