I’ve been using a script to batch export views/scenes with a specific proportion different than my screen. I’ve recently upgraded to SU 2025 & now 2026, and I’m getting problems with the output.
For example this console command creates a corrupt image. (The yellow columns)
Sketchup.active_model.active_view.write_image('c:\temp\test.jpg',3750,2250,true)
But if I match the actual current screen width & height proportion using File > Export > 2d Graphic > Options (4862 pixels wide for 2250 high), I get the correct image:
Sketchup.active_model.active_view.write_image('c:\temp\test.jpg',4682,2250,true)
The corrupted image output varies and strangely enough if I double the desired output, it worked fine.
Sketchup.active_model.active_view.write_image(‘c:\temp\test.jpg’,7500,4500,true)
Any suggestions of what is happening and how to avoid?

