Download the PHP package thies/gameboy-camera-image-extractor without Composer
On this page you can find all versions of the php package thies/gameboy-camera-image-extractor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download thies/gameboy-camera-image-extractor
More information about thies/gameboy-camera-image-extractor
Files in thies/gameboy-camera-image-extractor
Package gameboy-camera-image-extractor
Short Description This is a PHP library for extracting Game Boy Camera photos from a save ram (.sav) file and writing them in various image formats.
License MIT
Informations about the package gameboy-camera-image-extractor
gameboy-camera-image-extractor
This is a PHP library for extracting Game Boy Camera photos from a save ram (.sav) file and writing them in various image formats.
The library requires the GD php extension to work.
To see it in action go to https://gbcamera.net
Basic usage
To just extract the images and store them on disk use the image writer:
By default, it outputs the images in PNG format. There are multiple adapter available for different image formats. For example, if you want to output the images in webp format you can use the Webp adapter:
It will output the images in webp format. You can also extend \GameboyCameraImageExtractor\Writer\Writer and write
you own implementation for your specific needs.
If you want to get the images without writing them to disk you can use the image extractor:
This will return an array of \GdImage objects.
Palettes
You can also use palletes to give the image a bit more color.
Basic usage:
There are some presets, I might add some more at a later time.
Credits
I could not have made this without the works of raphnet: https://github.com/raphnet/gbcam2png
All versions of gameboy-camera-image-extractor with dependencies
ext-gd Version *