- The added line is THIS COLOR.
- The deleted line is THIS COLOR.
TITLE:GIF89a Overlay for PHP
CENTER:''GIF画像重ね合わせ PHP extension''
RIGHT:(c) 2008/09/18- yoya@awm.jp
#contents
[[GifOverlay]] の PHP extension を用意する。
[[GifOverlay]] の PHP extension
* 仕様 [#m28a2ee4]
** API [#b8dcf911]
class GIFOverlay {
function add($gif_data); return true/false
function output(); return $gif_data
}
** 使用例 [#o1d2c53e]
new $go = new GIFOverlay();
$go->add(get_file_contents('background.gif'));
$go->add(get_file_contents('avatar.gif'));
$go->add(get_file_contents('item.gif'));
echo $go->output;
* SF.NET にプロジェクト登録してみた [#lbfafb0f]
giflib/util/gifovly.c inspired me.
gifovly.c is based begore GIF89 spec,
no transparent, no animation.
I think so good extend gifovlay.c
to include GIF89 and GIF89a function,
and provide php extension make us happy.
ex)
new $go = new GIFOverlay();
$go->add(get_file_contents('background.gif'));
$go->add(get_file_contents('avatar.gif'));
$go->add(get_file_contents('item.gif'));
echo $go->output(); // item.gif overlap avatar.gif overlap background.gif
無茶な英文だけど気持ちは伝わると信じてる。
* 関連 [#a7d27e65]
- [[GifOverlay]]