I am dealing with exif data acquired via php , and I see that the DPI of a scanned image can return 300/1 or 600/1 for example
I am not sure if this is normal but google tells me it is common. I do not know if this means I may see 300/2 (150DPI)
When I get this variable from exif, I want to treat it as a math problem that needs simplifying or in math terms 300 / 1 =300 therefore 300. As it is a string I have no idea how to tell php to simplify the math in the string.
Any ideas?