pdf-to-image icon indicating copy to clipboard operation
pdf-to-image copied to clipboard

"Pdf::setCompressionQuality()"

Open emresaracoglu opened this issue 2 years ago • 1 comments

Hello,

thrown in /var/www/clients/client8/web35/***/vendor/spatie/pdf-to-image/src/Pdf.php on line 108
[10-Apr-2022 20:30:08 Europe/Istanbul] PHP Fatal error:  Uncaught Error: Call to undefined method Spatie\PdfToImage\Pdf::setCompressionQuality()

If I use this tag setCompressionQuality, I get a 500 error. What could be the reason for this?

Thank you.

emresaracoglu avatar Apr 10 '22 17:04 emresaracoglu

same issue. setCompressionQuality got added in 1.6.1, however composer installs version 1.2.2 with php 8.1, as it was >=5.6 for a while, then got changed to ^7.2|^8.0.

As quick fix you can force the latest version:

"spatie/pdf-to-image": "^2.2",

then run:

composer update --ignore-platform-reqs

Also I'm sending a PR to fix the issue.

lintaba avatar Jun 12 '22 23:06 lintaba

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.

spatie-bot avatar Oct 13 '22 10:10 spatie-bot

@lintaba Thank you for your answer and work.

emresaracoglu avatar Oct 13 '22 10:10 emresaracoglu