PHPackages                             robgridley/ghostscript - 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. robgridley/ghostscript

ActiveLibrary

robgridley/ghostscript
======================

Ghostscript wrapper for converting PDFs to images

43.7k↓45.8%2PHPCI failing

Since Oct 29Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/robgridley/ghostscript)[ Packagist](https://packagist.org/packages/robgridley/ghostscript)[ RSS](/packages/robgridley-ghostscript/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Ghostscript PHP
===============

[](#ghostscript-php)

Yet another Ghostscript PHP wrapper for converting PDFs (or PS files) to images. This library accepts strings, streams or real files as input and returns the output from stdout as a string.

Installation
------------

[](#installation)

```
composer require robgridley/ghostscript:dev-master

```

Usage Example
-------------

[](#usage-example)

```
use RobGridley\Ghostscript\Devices;
use RobGridley\Ghostscript\RealFile;
use RobGridley\Ghostscript\Ghostscript;
use RobGridley\Ghostscript\VirtualFile;

$device = new Devices\Png24;
$device->setDownScaleFactor(2);

$gs = new Ghostscript($device);
$gs->setPageBox('trim');
$gs->setResolution(144);

$file = new RealFile('/path/to/file.pdf');
// or $file = new VirtualFile($someString);

$image = $gs->convert($file);
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance46

Moderate activity, may be stable

Popularity27

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 Bus Factor1

Top contributor holds 95% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b86b46c6650529f0d67312b873a0b1f77ca82937ebf12108f4a38a8f0230dc0?d=identicon)[robgridley](/maintainers/robgridley)

---

Top Contributors

[![robgridley](https://avatars.githubusercontent.com/u/9560656?v=4)](https://github.com/robgridley "robgridley (19 commits)")[![josuealcalde-medac](https://avatars.githubusercontent.com/u/118375038?v=4)](https://github.com/josuealcalde-medac "josuealcalde-medac (1 commits)")

### Embed Badge

![Health badge](/badges/robgridley-ghostscript/health.svg)

```
[![Health](https://phpackages.com/badges/robgridley-ghostscript/health.svg)](https://phpackages.com/packages/robgridley-ghostscript)
```

PHPackages © 2026

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