> i dont think thats sufficient to avoid problems, have you thought about > what happens when the result does not fit in 32bit ? > > I could ceiling any result greater than INT_MAX or less than INT_MIN. Is this common for a single dimension of cropping to be that large -- let alone the entire frame dimension?