PHP Classes

File: tests/ResizeGif.Test2.php

Recommend this page to a friend!
  Classes of Asbjorn Grandt   PHP GIF Resizer   tests/ResizeGif.Test2.php   Download  
File: tests/ResizeGif.Test2.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP GIF Resizer
Resize images and animations based on the GIF89a
Author: By
Last change: Removed hex block from debug tools.

I'll probably release that as stand alone.
Date: 7 years ago
Size: 713 bytes
 

Contents

Class file image Download
<?php
error_reporting
(E_ALL | E_STRICT);
ini_set('error_reporting', E_ALL | E_STRICT);
ini_set('display_errors', 1);

include
"../vendor/autoload.php";

use
grandt\ResizeGif\Debug\DebugGif;

// Rotating_earth and SmallFullColourGIF are from the GIF Wikipedia page.
// $srcFile = 'resources/Rotating_earth_(large).gif';
// $srcFile = 'resources/SmallFullColourGIF.gif';
$srcFile = 'resources/frame_diff_ir2t.gif';
// $srcFile = 'test.gif';


echo "<!doctype html><html><head><title>ResizeGif.Test2</title></head><body><pre>\n";


echo
"Dumping gif stats for $srcFile:\n";
DebugGif::dumpGif($srcFile);
// DebugGif::dumpGif($srcFile, "."); // Dump the frames in the current directory.
echo "</pre></body></html>\n";