src/Commands/Convert.php
public function createGifCommandCmd(array $sourcesImages,
	                                    $resultImageName,
	                                    $resultDirectory,
	                                    $delay = 50,
	                                    $loop = 0)
	{
		$delayOption = $this->_createOption(Delay::class, $delay);
		$loopOption  = $this->_createOption(Loop::class, $loop);

		return 'convert ' . $delayOption . implode(' ', $sourcesImages) . ' ' . $loopOption . $resultDirectory
		       . DIRECTORY_SEPARATOR . $resultImageName . '.gif';
	}
public function createGifCommandCmd(array $sourcesImages,
	                                    $resultImageName,
	                                    $resultDirectory,
	                                    $delay = 50,
	                                    $loop = 0)
	{
		$delayOption = $this->_createOption(Delay::class, $delay);
		$loopOption  = $this->_createOption(Loop::class, $loop);

		return 'convert ' . $delayOption . implode(' ', $sourcesImages) . ' ' . $loopOption . $resultDirectory
		       . DIRECTORY_SEPARATOR . $resultImageName . '.gif';
	}
Returns the command to create a gif image of the passed source images.

@param array  $sourcesImages   Array which contains the path to the source images.
@param string $resultImageName Name of the result image, the ".gif" extension will be added automatically.
@param string $resultDirectory Path to directory where the result image should be stored.
@param int    $delay           Delay of gif animation.
@param int    $loop            Amount of loops of gif image.

@return string