how to use imagemagick with tcpdf

Viewed 25632

I need to handle images in TCPDF

I get this error.. Imagemagick is installed, but how do I tell TCPDF the path to imagemagick?

TCPDF ERROR: TCPDF requires the Imagick or GD extension to handle PNG images with alpha channel.
4 Answers

For PHP7.X on CentOS:

sudo yum install php-gd

Then restart your web server.

If a gd.ini file appears in the "Additional .ini files parsed" section of phpinfo.php, then it's successfully installed.

Related