Skip to content

A converter to output a Structured Fax File (SFF) as PNG

License

Notifications You must be signed in to change notification settings

blacksenator/sff2png

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sff2png

Purpose

This class provides functions to read structured FAX files (SFF) and convert them into PNG file(s).

Requirements

Installation

You can install it through Composer:

"require": {
    "blacksenator/sff2png": "^1.0"
},

or

git clone https://github.com/blacksenator/sff2png.git

Usage

<?PHP

require_once 'sffImager.php';

use blacksenator\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);
}

License

This script is released under MIT license.

Author

Copyright (c) 2022 Volker Püschel

About

A converter to output a Structured Fax File (SFF) as PNG

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages