Skip to content

stas-bool/gifer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gifer

Generate gif animation from text

Try it: http://t.me/VexyTextyGifer_bot

Usage:
composer require stas-bool/gifer

<?php

require_once __DIR__.'/vendor/autoload.php';

$text = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.';

$gif = Gifer\Gifer::createGif(
	__DIR__.'/NotoSans-Regular.ttf', //font file
	$text, //text
	'#000000', //background color in hex format
	'#FFFFFF', //font color in hex format
	5 //speed 1(slowest) - 10(fastest),
);
file_put_contents('/tmp/test.gif', $gif);

Result:
Result gif

About

Convert text to gif animation

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages