View Capture Larger than viewport resolution incorrectly extends to width

Output images saved with ViewCaptureToFile command are “snapped” to width instead of height. If captured with the same resolution as the viewport they are the same as the safe frame:

1 Viewport with a safe frame constrained to the height:


2 Output image captured to the width: