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 function GDText\imageftbbox() #39

Open
carolineplanet opened this issue Dec 6, 2017 · 1 comment
Open

Call to undefined function GDText\imageftbbox() #39

carolineplanet opened this issue Dec 6, 2017 · 1 comment

Comments

@carolineplanet
Copy link

I don't know how to use gd-text, I can't get defined the imageftbbox function. I think I have all php and gd installed but it's impossible to run this.

The error I get:

Fatal error: Call to undefined function GDText\imageftbbox() in /vendor/stil/gd-text/src/Box.php on line 383

Does anybody know how can I do?

Thank you!

@rolivegab
Copy link

try to install freetype-devel and jpeg-devel,
if you're using docker:

RUN apk update && \
    apk add --no-cache git jpeg-dev postgresql-dev zlib-dev freetype-dev libpng-dev libxml2-dev autoconf $PHPIZE_DEPS && \
    pecl install -f xdebug

# install/enable extensions
RUN docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql && \
    docker-php-ext-configure intl && \
    docker-php-ext-configure gd --with-jpeg --with-freetype && \
    docker-php-ext-install pdo_pgsql pgsql gd intl soap bcmath && \
    docker-php-ext-enable xdebug

this worked for me

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

2 participants