Match photo selection and rendered canvas to device rotation

This commit is contained in:
Pigway
2026-10-05 22:44:41 +08:00
parent 8139a646d7
commit 59345f12a7
13 changed files with 249 additions and 35 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ def test_random_preview_is_local_and_display_uses_same_asset(client, service, ph
assert service.registry.get("living-room").get_current_image() == before
image = client.get(op["result"]["url"])
assert image.status_code == 200
assert Image.open(BytesIO(image.content)).size == (1200, 1600)
assert Image.open(BytesIO(image.content)).size == (1600, 1200)
r = client.post(
"/api/v1/display",
json={"content": {"type": "image", "asset_id": op["result"]["asset_id"]}},