It is dependent on the extension in the filename, but be cautious - I have come across a bug that trying to save as JPG sometimes results in it saving a PNG but setting the extension to JPG - which makes it preview in windows but not open properly in many other applications, can be quite confusing.
Where I can find the options that can be added to the command, Like you did with ViewCaptureToFile then adding _Width _Height for example. Sometimes those options are not obvious when working outside of the GUI known as Rhino
Well, I actually wasn’t kidding. The only way to find these options IS on the command line.
Type -_ViewCaptureToFile (with the dash), give it a file name and Enter, then see the options…
With rs.Command, you are just calling stuff as if you were on the command line. The options are the same as found in the normal Rhino commands. You do need to script them in the correct sequence, and occasionally there are some fun “specialties” that you need to test by trial-and-error…