Releases: BattlesnakeOfficial/exporter
Releases · BattlesnakeOfficial/exporter
1.2.20
1.2.19
1.2.18
1.2.17
1.2.16
1.2.15
1.2.14
1.2.13
1.2.12
1.2.11
DEV-974: support different GIF sizes (#26)
This PR updates the rendering to support any GIF size. Previously the GIF size was determined by the board size.
Now, GIF size parameters can be passed and the renderer will centre the board within the GIF. It will maximise the size of the board such that the board squares fill up as much of the width/height as they can without being clipped. This logic is able to handle non-square boards.
Three new API methods have been added:
GET /games/<GAME_ID>/<SIZE>.gif
GET /games/<GAME_ID>/frames/<FRAME>/SIZE>.gif
GET /games/<GAME_ID>/frames/<FRAME>.txt
Where <SIZE>
is a path parameter expecting the format <WIDTH>x<HEIGHT>
.