You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>.