gd-text icon indicating copy to clipboard operation
gd-text copied to clipboard

Call to undefined function GDText\imageftbbox()

Open carolineplanet opened this issue 6 years ago • 1 comments

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!

carolineplanet avatar Dec 06 '17 22:12 carolineplanet

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

rolivegab avatar Aug 31 '20 12:08 rolivegab