StormyTalent
StormyTalent

Reputation: 227

Intervention/image plugin does not work on Docker Laravel image

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 shown.
On the docker image, the intervention images are like this on inspect dialog.

<img class="lazy" 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 dialog

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

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

Upvotes: 1

Views: 230

Answers (1)

Cardoso
Cardoso

Reputation: 1088

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.

Upvotes: 2

Related Questions