Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to undefined method GdImage::getPixelIterator() #34

Open
php4fan opened this issue Dec 3, 2023 · 1 comment
Open

Call to undefined method GdImage::getPixelIterator() #34

php4fan opened this issue Dec 3, 2023 · 1 comment

Comments

@php4fan
Copy link

php4fan commented Dec 3, 2023

I have a Laravel application that uses Grafika and had been working for months if not years.

Without touching anything in my code, I installed the ImageMagick php extension and now I get this error:

Error:
Call to undefined method GdImage::getPixelIterator()

  at /srv/www/iframe.xxxx.com/vendor/kosinix/grafika/src/Grafika/Imagick/Filter/Dither.php:60
  at Grafika\Imagick\Filter\Dither->diffusion()
     (/srv/www/iframe.xxxx.com/vendor/kosinix/grafika/src/Grafika/Imagick/Filter/Dither.php:40)
  at Grafika\Imagick\Filter\Dither->apply()
     (/srv/www/iframe.xxxx.com/vendor/kosinix/grafika/src/Grafika/Imagick/Editor.php:38)
  at Grafika\Imagick\Editor->apply()
     (/srv/www/iframe.xxxx.com/app/IFrame/Application.php:132)

The mere act of adding the ImageMagick extension (without modifying my code to use it in any way) has made this error appear.

@php4fan
Copy link
Author

php4fan commented Dec 3, 2023

And I can confirm that removing the ImageMagick extension "fixes" the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant