To reduce file sizes with graphical elements I often export an image of a viewport (or a group of elements), and then reimport that image file.
As VW’s image file export dialogue is idiosyncratic at best I normally place two locus points (at top left and bottom right in enclosed graphic). I set them out a mm or so (from the corners) to produce a slight oversize image (with a mm or so of white space) and avoid a pixelated edge, and then use the loci to snap to a precise window via the image export dialogue. The loci also provide a way to accurately measure viewport width, again to be able to produce a quality file via the image export dialogue. I’d be quite happy with a script that drew locus points, one at each corner.
Has anyone written or is there already a script to place locus points to define the bounding box of an object in this case a view port?
In my screenshot of the viewport I have left the view port crop on as a visual guide as this defines the viewport bounding box.