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(8mo ago)16MITPHPPHP ^8.4

Since Jan 2Pushed 8mo 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 today

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

36

—

LowBetter than 79% of packages

Maintenance60

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

252d 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

[char0n/ffmpeg-php

PHP wrapper for FFmpeg application

495240.6k1](/packages/char0n-ffmpeg-php)[goat1000/svggraph

Generates SVG graphs

135911.1k3](/packages/goat1000-svggraph)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

16653.6k2](/packages/gravatarphp-gravatar)[rsoury/wp-imgix

Rewrites WordPress image URLs to use ImgIX

167.2k](/packages/rsoury-wp-imgix)

PHPackages © 2026

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