My goal is it, to make an API-endpoint, where people can provide a String, that will then be added to a randomly selected gif, which will then be returned.
The text will be provided through a link (query param).
Someone recommended me to look at Convert each animated GIF frame to a separate BufferedImage but I'm not completely sure, if the provided solutions would work, for what I want to achieve.
I already did some endpoints, where I create images depending on certain values, which are returned as bytes[]
in a getOutputStream().write()
, but those are (obviously) only png-images.
Other things to note are, that I store the gifs, which should be edited, locally on the server and that I use sparkjava, to listen for get
actions on the endpoints.
Is the recommended answer in the above question a good solution, or is there a better one?