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(9mo ago)17MITPHPPHP ^8.4

Since Jan 2Pushed 9mo 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 1w 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

35

—

LowBetter than 77% of packages

Maintenance55

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

297d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/509234?v=4)[Thies](/maintainers/Thies)[@thies](https://github.com/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

[goat1000/svggraph

Generates SVG graphs

135931.0k3](/packages/goat1000-svggraph)[stefangabos/zebra_image

A single-file, lightweight PHP library designed for efficient image manipulation featuring methods for modifying images and applying filters

138121.6k7](/packages/stefangabos-zebra-image)[treinetic/imageartist

ImageArtist is a php gd Wrapper which makes Image manipulation insanely easy, we introduce ImageArtist as Photoshop for php

8783.2k](/packages/treinetic-imageartist)[johncarter/filament-focal-point-picker

An image focal point picker for Filament Admin.

4431.7k1](/packages/johncarter-filament-focal-point-picker)[yk/laravel-ocr

A wrapper for gocr.

1356.6k](/packages/yk-laravel-ocr)

PHPackages © 2026

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