All notable changes to pdf-to-image
will be documented in this file
- Add background color setting for the output image by @waithawoo in #239
- @waithawoo made their first contribution in #239
Full Changelog: https://github.com/spatie/pdf-to-image/compare/3.0.0...3.1.0
This release updates the package to a new major version, v3.0.0
.
- 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()
withpingImage()
(test suite runs ~33% faster).
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.
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.
- Bump dependabot/fetch-metadata from 1.6.0 to 2.1.0 by @dependabot in #228
- Major version: v3 by @patinthehat in #230
Full Changelog: https://github.com/spatie/pdf-to-image/compare/2.3.0...3.0.0
- Silently ignore pingImage failure and load number of pages lazily by @bobvandevijver in #187
- Add Dependabot Automation by @patinthehat in #203
- Fix failing tests by @patinthehat in #205
- Add PHP 8.2 Support by @patinthehat in #202
- Fix php-cs-fixer workflow by @patinthehat in #206
- Minor dependabot auto-merge workflow improvements by @patinthehat in #220
- Adding webp to the validOutputFormats by @ntaylor-86 in #221
- Add PHP 8.3 to the test run workflow by @patinthehat in #223
- @bobvandevijver made their first contribution in #187
- @patinthehat made their first contribution in #203
- @dependabot made their first contribution in #204
Full Changelog: https://github.com/spatie/pdf-to-image/compare/2.2.0...2.3.0
- Converting PHPUnit to Pest tests by @ntaylor-86 in #189
- Adding a thumbnail method by @ntaylor-86 in #188
- @ntaylor-86 made their first contribution in #189
Full Changelog: https://github.com/spatie/pdf-to-image/compare/2.1.0...2.2.0
- add support for PHP 8
- add usage of Imagick
pingImage
to speedup the page count
- added typehints
- removal of ability of loading pdfs via URLs
- add exception message to
PdfDoesNotExist
- throw exception when trying to fetch a negative page number
- add method getOutputFormat and update saveImage for auto set filename
- make
imagick
public
- fix bug around
setCompressionQuality
- add
setCompressionQuality
- add
setColorspace
- fix remote pdf handling
- fix flattening of pdf
- fix where
getNumberOfPages
would report the wrong number when looping through the pdf
- fix bugs introduced in 1.4.2
- fix for setting custom resolution
- fix
setLayerMethod
method
- add
setLayerMethod
method
- remove use of
Imagick::LAYERMETHOD_FLATTEN
as it messes up the rendering of specific pages
- set default format
- performance improvements
- allow pdf to be loaded from a URL
- improve return value
- fix for pdf's with transparent backgrounds
- added
saveAllPagesAsImages
-function.
- added
getImageData
-function.
- Exceptions now live in the right namespace.
- setPage is now working as excepted.
- It's so first release, so everything was added.