@ChrisHare this script does exactly what you want
import appex ui_image = appex.get_image(image_type='ui') print(ui_image.size)In Photos, you
select one tap share button tap "run Pythonista script" tap "edit scripts" choose this script tap the run buttonOf course, if you want to use frequently, you can add it to the Pythonista share scripts