I'm a programmer first, so I'm not very good at these sort of things -- I've been building myself a image resizer/cropper/positioner for my own html pages ... however, most tools I've used that are resizer/croppers -- don't have an added dimension of the actual image viewport. I wonder if there is sort of "standard" for this ...
I want to be able to: - resize of the viewport - resize the image relative to the viewport - position the image relative to the viewport

However I can already see many issues with this
- What happens if the outer image size is too large -- do the outer controls disappear?
- Is this confusing to have two sets of controls?
Has anyone run into this usability issue before? (apologies if I tagged this wrong, first time to this part of the stack)