While saving a single image with the gif format, it is possible to set the number of loops with the animationIterations(). This works fine and after setting it, the same method retrieves the correct file (there's even tests for this on tests/attributes.cpp).
The problem is that when the file is actually written, this is discarded and a value of 1 is used instead.
I don't know of any other tool to inspect the content of GIF files so I guess it is also possible that the bug is on the reading of GIF files, i.e., if there is no other frames, it skips reading the actual value, and assumes a value of 1.
Log in to post a comment.