Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Pdf To Image Laravel Package

spatie/pdf-to-image

Convert PDF pages to images with this simple PHP class built on Imagick and Ghostscript. Save as jpg, jpeg, png, or webp, render any page, and check page counts. Requires PHP 8.2+.

View on GitHub
Deep Wiki
Context7
3.4.0

What's Changed

Full Changelog: https://github.com/spatie/pdf-to-image/compare/3.3.0...3.4.0

3.3.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/pdf-to-image/compare/3.2.0...3.3.0

3.2.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/pdf-to-image/compare/3.1.0...3.2.0

3.1.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/pdf-to-image/compare/3.0.0...3.1.0

3.0.0

This release updates the package to a new major version, v3.0.0.

Major changes:

  • Dropped support for PHP versions < 8.2.
  • Many breaking API changes (see below).
  • Added support for saving multiple pages to images using selectPages().
  • Native Backed Enum implementations to enforce allowed values in several places.
  • Dropped support for reading remote PDF files for security reasons.
  • Added property, argument and return types.
  • Removed Imagick instance creation in constructor, replaced calls to readImage() with pingImage() (test suite runs ~33% faster).

Breaking API Changes

There are breaking API changes from v2 to v3. These changes streamline the developer experience, enhance understanding of the functionality of the methods, and reduce cognitive overload by simplifying method names. See the updated README.md for a full list of the new API methods and method names.

Additional Changes

  • php-cs-fixer configuration and workflow was dropped in favor of Laravel Pint.
  • Readme updated to include all available methods, fix a few grammatical errors, etc.
  • Fixed several minor, previously unknown bugs.
  • Test coverage increased from ~65% to ~93%.
  • Pest upgraded to v2, migrated PHPUnit configuration to v10.
  • Unit tests were reorganized/restructured to be more manageable, and Pest configuration files were added.

What's Changed

Full Changelog: https://github.com/spatie/pdf-to-image/compare/2.3.0...3.0.0

2.3.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/pdf-to-image/compare/2.2.0...2.3.0

2.2.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/pdf-to-image/compare/2.1.0...2.2.0

2.1.0
  • add support for PHP 8 (#164)
2.0.1
  • add usage of Imagick pingImage to speedup the page count
2.0.0
  • added typehints
  • removal of ability of loading pdfs via URLs
1.8.2
1.8.1
  • throw exception when trying to fetch a negative page number
1.8.0
  • add method getOutputFormat and update saveImage for auto set filename
1.7.0
  • make imagick public
1.6.1
  • fix bug around setCompressionQuality
1.6.0
  • add setCompressionQuality
1.5.0
  • add setColorspace
1.4.6
  • fix remote pdf handling
1.4.5
  • fix flattening of pdf
1.4.4
  • fix where getNumberOfPages would report the wrong number when looping through the pdf
1.4.3
  • fix bugs introduced in 1.4.2
1.4.2
  • fix for setting custom resolution
1.4.1
  • fix setLayerMethod method
1.4.0
  • add setLayerMethod method
1.3.3
1.3.2
  • set default format
1.3.1
  • performance improvements
1.3.0
  • allow pdf to be loaded from a URL
1.2.2

improve return value

1.2.1
  • fix for pdf's with transparent backgrounds
1.2.0
  • added saveAllPagesAsImages-function
1.1.0
  • added getImageData-function
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
encore2/laravel-admin2
cboxdk/laravel-console-kit
shapecode/doctrine-dbal-datetimeutc
gilads-otiannoh254/inertia-protocol
dakiquang/laravel-oauth-refresh-lock
woda/laravel-worktrees
dalefranks/ramasite
faghy/laracashbook
roundly-consulting/google-places-for-laravel
roundly-consulting/kubernetes-api-for-laravel
roundly-consulting/plausible-for-laravel
gvp/gvp-laravel-template
metasyncsite/laravel-metasync-client
roundly-consulting/onboarding-for-laravel
adachsoft/cli-process-tester
adachsoft/changelog-linter
adachsoft/collection
adachsoft/php-code-style
adachsoft/api-version-bundle
cgv/localized-resource