Home > Software engineering >  Intervention/image plugin does not work on Docker laravel image
Intervention/image plugin does not work on Docker laravel image

Time:02-06

I combined Laravel, Nginx, and MySQL in one docker image. Everything is fine except images are not showing when I deploy docker image.
When I have several tests on my local PC with laravel source, the intervention images are successfully showing.
On docker image, the intervention images are like this on inspect dialog.

<img  src="/img/placeholder.png" data-src="/assets/logos/c200x90/hallon.png" width="100" height="45" alt="Hallon">

And on my local PC the intervention image looks like this on inspect diaglog

<img  src="/assets/logos/c200x90/hallon.png" width="100" height="45" alt="Hallon" style="">

Even though laravel sources are same, I don't know why this happened?

CodePudding user response:

I think that is the php setting problem.
Try to add the following config cmd to php.ini.

extension=gd

Let me know if it works or not.

  •  Tags:  
  • Related