PHPackages                             thies/gameboy-camera-image-extractor - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. thies/gameboy-camera-image-extractor

ActiveLibrary[Image &amp; Media](/categories/media)

thies/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.

1.1.2(6mo ago)16MITPHPPHP ^8.4

Since Jan 2Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/thies4321/gameboy-camera-image-extractor)[ Packagist](https://packagist.org/packages/thies/gameboy-camera-image-extractor)[ RSS](/packages/thies-gameboy-camera-image-extractor/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

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

Basic usage
-----------

[](#basic-usage)

To just extract the images and store them on disk use the image writer:

```
$imageWriter = new \GameboyCameraImageExtractor\ImageWriter();
$imageWriter->extractAndStoreToDisk('/path/to/file.sav', '/output/directory');
```

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:

```
$webpAdapter = new \GameboyCameraImageExtractor\Writer\Webp();
$imageWriter = new \GameboyCameraImageExtractor\ImageWriter($webpAdapter);
$imageWriter->extractAndStoreToDisk('/path/to/file.sav', '/output/directory');
```

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:

```
$imageExtractor = new \GameboyCameraImageExtractor\ImageExtractor();
$imageExtractor->extractFromFile('/path/to/file.sav');
```

This will return an array of `\GdImage` objects.

Palettes
--------

[](#palettes)

You can also use palletes to give the image a bit more color.

Basic usage:

```
$palette = new \GameboyCameraImageExtractor\Entity\Palette('#ffffff', '#cccccc', '#666666', '#000000');
$imageWriter = new \GameboyCameraImageExtractor\ImageWriter();
$imageWriter->extractAndStoreToDisk('/path/to/file.sav', '/output/directory', $palette);
```

There are some presets, I might add some more at a later time.

```
$preset = \GameboyCameraImageExtractor\Enum\PalettePreset::GameboyPlayer;
$palette = \GameboyCameraImageExtractor\Entity\Palette::createForPreset($preset);
```

Credits
-------

[](#credits)

I could not have made this without the works of raphnet:

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance66

Regular maintenance activity

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~98 days

Total

4

Last Release

198d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4b97408c87d2a48e8646f02734a01dfe6096518598e0c0cd49ec35b285128c07?d=identicon)[Thies](/maintainers/Thies)

---

Top Contributors

[![thies4321](https://avatars.githubusercontent.com/u/7131864?v=4)](https://github.com/thies4321 "thies4321 (11 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/thies-gameboy-camera-image-extractor/health.svg)

```
[![Health](https://phpackages.com/badges/thies-gameboy-camera-image-extractor/health.svg)](https://phpackages.com/packages/thies-gameboy-camera-image-extractor)
```

###  Alternatives

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)[humanmade/tachyon-plugin

Rewrites WordPress image URLs to use Tachyon

87338.5k2](/packages/humanmade-tachyon-plugin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
