spatie/pdf-to-image
Convert a pdf to an image observed · 2026-08-28
Health v2 · maintenance only
88/100
- Activity 96
- Release rhythm 72
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 137
- age_days: 4080
- days_rel: 26
- days_push: 26
- n_releases_24m: 4
Adoption not part of the score
1457 stars · 231 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A PHP library that converts PDF files to images (jpg, png, webp) using Imagick and Ghostscript. It supports rendering single or multiple pages, choosing output format, and setting quality and resolution.
Use cases
- convert pdf pages to images in php
- render pdf thumbnail from first page
- extract specific pages of a pdf as png
- generate webp images from pdf documents
- get page count of a pdf file
- batch convert pdf documents to jpg
When to choose
- you're on PHP 8.2+ and need simple PDF-to-image conversion
- you want per-page selection and multiple output formats
- you already have Imagick and Ghostscript installed
When to avoid
- you can't install Ghostscript or Imagick on your server
- you need pure-PHP PDF rendering without native dependencies
- you need to extract text or vector data rather than raster images
Facets
library · maturity active
image-processing pdf pdf files web-development php cli pdf-to-image imagick ghostscript spatie composer
1 source
- readme: https://github.com/spatie/pdf-to-image · fetched 2026-08-28 · 842c27f94c91
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| spatie/pdf-to-image | main | 88 |
For agents
markdown · JSON · MCP: product_card(name="spatie/pdf-to-image")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem