File: example.split.php

Recommend this page to a friend!
  Classes of Christian Vigh  >  PHP TIFF Split and Merge  >  example.split.php  >  Download  
File: example.split.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP TIFF Split and Merge
Split and merge multipage TIFF images
Author: By
Last change:
Date: 4 years ago
Size: 776 bytes


Class file image Download

        This example takes a multipage TIFF file (example.tif) and extracts all its
        pages to page.0.tif up to page.x.tif.

        To properly run this example, you need an existing multipage tif file called

        You can get the example images here :


require_once ( 'TiffSplitter.phpclass' ) ;

$tiff = TiffSplitter::Load ( 'images/multipage.tif' ) ;

    foreach (
$tiff as $page )
$output = 'page.' . $page -> PageNumber . '.tif' ;
$page -> SaveTo ( $output ) ;

For more information send a message to info at phpclasses dot org.