wokwi / wokwi-features

Wokwi Feature requests & Bug Reports
https://wokwi.com
73 stars 17 forks source link

Wokwi CI - Support for rotating screenshots #670

Closed georgik closed 12 months ago

georgik commented 1 year ago

Current state: Wokwi CI is able to take a screenshot, but it does not take into account orientation of simulated display. User needs to rotate the screenshot afterwards using tool like ImageMagic which might not be present in CI build container.

Example of diagram.json: https://github.com/georgik/esp32-spooky-maze-game/blob/main/esp-wrover-kit/diagram.json#L18

Desired state: Image is rotated, either by using the information from diagram.json or from a CLI parameter.

urish commented 12 months ago

The CI should now take into account the "rotate" value from the diagram (it only works for right angle rotations, i.e. 90 / 180 / 270 degrees)