select a camera ( or an object if you want) and run the script.
It will add a attribute holder.
Now you can change interactively the render output size directly, each camera can have its own, the "apply" button allow to apply camera settings to render output (when switching to another camera).
to do : buttons to have 1, 1/2, 1/4, render size to make test render