2017 © Pedro Peláez
 

package sxg

SXG conversion/generation in PHP

image

moroz1999/sxg

SXG conversion/generation in PHP

  • Monday, February 19, 2018
  • by moroz1999
  • Repository
  • 2 Watchers
  • 1 Stars
  • 25 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 4 % Grown

The README.md

SXG

This repository contains the tools required for SXG images generation in PHP., (*1)

Usage example

$gd = imagecreatefromjpeg('boobs.jpg');

include_once('src/Sxg/Image.php');
$image = new Sxg\Image();
$image->setWidth(320);
$image->setHeight(240);
$array = [
    0x000fff,
    0xff00ff,
    0x000000,
    0xff0000,
    0xffff00,
    0xffffff,
    0xf0ff30,
    0x808080,
    0x80f080,
    0xcdcdcd,
    0xf7cdb4,
    0x432118,
    0xb58169,
];
$image->setColorFormat($image::SXG_COLOR_FORMAT_16);
$image->setRgbPalette($array);
$image->setPaletteType($image::SXG_PALETTE_FORMAT_CLUT);
$image->importFromGd($gd);
file_put_contents('test.sxg', $image->getSxgData());

Installation

Composer, (*2)

{
    "require": {
        "moroz1999/sxg": "*"
    }
}

License

Creative Commons Zero v1.0 Universal, (*3)

The Versions

19/02 2018

dev-master

9999999-dev https://github.com/moroz1999/sxg

SXG conversion/generation in PHP

  Sources   Download

CC0-1.0 CC0 1.0 Universal

The Requires

  • php >=5.6.0

 

php sxg zx spectrum zx evolution

19/02 2018

1.0.3

1.0.3.0 https://github.com/moroz1999/sxg

SXG conversion/generation in PHP

  Sources   Download

CC0-1.0

The Requires

  • php >=5.6.0

 

php sxg zx spectrum zx evolution

12/09 2017

1.0.2

1.0.2.0 https://github.com/moroz1999/sxg

SXG conversion/generation in PHP

  Sources   Download

CC0 1.0 Universal

The Requires

  • php >=5.6.0

 

php sxg zx spectrum zx evolution

28/02 2017

1.0.1

1.0.1.0 https://github.com/moroz1999/sxg

SXG conversion/generation in PHP

  Sources   Download

CC0 1.0 Universal

The Requires

  • php >=5.6.0

 

php sxg zx spectrum zx evolution

27/03 2016

0.0.3

0.0.3.0 https://github.com/moroz1999/sxg

SXG conversion/generation in PHP

  Sources   Download

CC0 1.0 Universal

The Requires

  • php >=5.6.0

 

php sxg zx spectrum zx evolution

27/03 2016

1.0.0

1.0.0.0 https://github.com/moroz1999/sxg

SXG conversion/generation in PHP

  Sources   Download

CC0 1.0 Universal

The Requires

  • php >=5.6.0

 

php sxg zx spectrum zx evolution

27/03 2016

0.0.2

0.0.2.0 https://github.com/moroz1999/sxg

SXG conversion/generation in PHP

  Sources   Download

CC0 1.0 Universal

The Requires

  • php >=5.6.0

 

php sxg zx spectrum zx evolution

27/03 2016

0.0.1

0.0.1.0 https://github.com/moroz1999/sxg

SXG conversion/generation in PHP

  Sources   Download

CC0 1.0 Universal

The Requires

  • php >=5.6.0

 

php sxg zx spectrum zx evolution