PHP code example of blacksenator / sff2png
1. Go to this page and download the library: Download blacksenator/sff2png library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
blacksenator / sff2png example snippets
<?PHP
lacksenator\sff\sffImager;
$rawData = file_get_contents('Test_2.sff');
$sFFile = new sffImager($rawData);
$images = $sFFile->getSFFasPNG($rawData);
foreach ($images as $number => $image) {
file_put_contents('FAX_page_' . ($number + 1) . '.png', $image);
}