Example 1 - Test browser APNG support

<?php
require_once "./APNG_Creator/APNG_Creator.php";

$default_image imagecreatetruecolor(33236);
$background imagecolorallocate($default_image255255255);
imagefill($default_image00$background);
$color imagecolorallocate($default_image25500);
imagestring($default_image51111"Your browser does NOT support APNG!"$color);
$frame1 imagecreatetruecolor(33236);
imagefill($default_image00$background);
$color imagecolorallocate($frame12025520);
$background imagecolorallocate($frame1000);
imagefill($frame100$background);
imagestring($frame151111"Your browser supports APNG!"$color);
// Creating the animation
$animation = new APNG_Creator();
$animation->save_alpha false;
$animation->save_time false;
$animation->add_image($default_imagenull100000false); // this image won't be the part of the animation
$animation->add_image($frame1null000);
$animation->save("./browser_test.png");
$animation->destroy_images();
?>