PHPackages                             nayzawoo/pdf-to-image - 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. nayzawoo/pdf-to-image

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

nayzawoo/pdf-to-image
=====================

Convert PDF pages to JPG/PNG images using libvips

v2.0.0(3w ago)117MITPHPPHP ^8.5CI passing

Since Nov 6Pushed 3w ago1 watchersCompare

[ Source](https://github.com/nayzawoo/pdf-to-image)[ Packagist](https://packagist.org/packages/nayzawoo/pdf-to-image)[ RSS](/packages/nayzawoo-pdf-to-image/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (5)Versions (8)Used By (0)

PDF to Image
============

[](#pdf-to-image)

[![Tests](https://github.com/nayzawoo/pdf-to-image/actions/workflows/test.yml/badge.svg)](https://github.com/nayzawoo/pdf-to-image/actions/workflows/test.yml)[![License](https://camo.githubusercontent.com/159257b5017080b005673e982e7a76b6259e3fff340ae2c5a29bd59597840236/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6e61797a61776f6f2f7064662d746f2d696d6167652e7376673f63616368655365636f6e64733d30)](LICENSE)

A high-performance PHP library to convert PDF pages to JPG/PNG images using [libvips](https://github.com/libvips/libvips) via [php-vips](https://github.com/libvips/php-vips).

---

Why libvips?
------------

[](#why-libvips)

libvips is an extremely fast image processing library with a very low memory footprint. Unlike ImageMagick, it does not load the entire image into memory, making it highly efficient for converting large, multi-page PDFs to images.

---

Requirements
------------

[](#requirements)

- **libvips** C library ([installation instructions](https://github.com/libvips/php-vips#install))
- **PHP** &gt;= 8.5 (with FFI support enabled)

---

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

[](#installation)

Install the package via Composer:

```
composer require nayzawoo/pdf-to-image
```

---

Usage
-----

[](#usage)

### Basic Example

[](#basic-example)

```
