Skip to content

1.2.11

Compare
Choose a tag to compare
@robbles robbles released this 10 Mar 20:53
· 18 commits to main since this release
093f9f6

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>.