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

imagick support #530

Closed
devSarry opened this issue Jan 6, 2017 · 10 comments · Fixed by #2631
Closed

imagick support #530

devSarry opened this issue Jan 6, 2017 · 10 comments · Fixed by #2631
Assignees

Comments

@devSarry
Copy link

devSarry commented Jan 6, 2017

How would I add imagick support the docker container?
I have a dependency (http://glide.thephpleague.com/) that needs either imagick or gd.

Thanks

@devSarry
Copy link
Author

devSarry commented Jan 7, 2017

Sorry it seems like the base php image contains gd support the error I was getting was

Reading Exif data is not supported by this PHP installation.

So the issue is still similar. How would I go about modifying the php's ini file?

@sc0Vu
Copy link

sc0Vu commented Jan 20, 2017

Maybe you can edit laravel.ini in ./php-fpm or you can mv your ini files into php-fpm container ./usr/local/etc/php/conf.d
Hope this helps.

@hamony
Copy link

hamony commented Jan 27, 2017

+1 I also need to install imagick.

@hamony
Copy link

hamony commented Jan 31, 2017

Hope this could help someone wants to install imagick extension https://gist.github.com/pascalbaljet/bd7b8fd63b76c7564189

@filipac
Copy link

filipac commented Mar 11, 2017

It could be as simple as adding this to php-fpm/Dockerfile-70:

RUN apt-get -y update && \
    apt-get install pkg-config libmagickwand-dev -y && \
    pecl install imagick

RUN docker-php-ext-enable imagick

@ihd2911
Copy link

ihd2911 commented Apr 3, 2017

Not working, i tried it but images are still not generated

@xcafebabe
Copy link

Using php-5.6 add this in your php-fpm/Dockerfile-56 before Final Touch comment

RUN apt-get -y update && \
    apt-get install pkg-config imagemagick libmagickwand-dev -y && \
    pecl install imagick && \
    docker-php-ext-enable imagick

@jleonardolemos
Copy link

@filipac your code works fine!! thanks!!

@JexPY
Copy link

JexPY commented Jun 15, 2020

RUN apk --no-cache update \
    && apk add --update imagemagick-dev imagemagick \
    && pecl install imagick \
    && docker-php-ext-enable imagick

After some research I installed imagick on php 7.4.3 for php-worker with this commands, @Mahmoudz if you like this kind of workaround I could create pr for it.

@ultrono
Copy link

ultrono commented Aug 3, 2020

As this thread is ranked highly in Google, the following may help. Newer version of Laradocm have a setting you can change. Look for PHP_FPM_INSTALL_EXIF in your .env file.

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

Successfully merging a pull request may close this issue.