We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b388f5 commit 76197caCopy full SHA for 76197ca
src/GifCreator/AnimGif.php
@@ -302,7 +302,7 @@ protected function gifAddHeader()
302
$this->gif .= substr($this->frameSources[0], 6, 7);
303
$this->gif .= substr($this->frameSources[0], 13, $cmap);
304
if ($this->loop !== 1) // Only add the looping extension if really looping
305
- $this->gif .= "!\xFF\x0BNETSCAPE2.0\0x03\0x01".word2bin($this->loop)."\x0";
+ $this->gif .= "!\xFF\x0BNETSCAPE2.0\x03\x01".word2bin($this->loop==0?0:$this->loop-1)."\x0";
306
}
307
308
0 commit comments