I am using Jcrop for cropping image so i want to calculate ratio of height and width of image but problem is that there is no limit of maximum height and width.
when user upload image then i want to get height,width ratio so on cropping it should be crop with respect to aspect ratio for example
Width=835, Height=625 aspect ratio would be 167: 125
i have calculated this ratio from following link Aspect ratio calculator
I don't want to cacalute new height,width. I just want to calculate ratio 167: 125
How can i do this?