Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I merge two images in PHP without GD?

How can I merge two images in PHP without GD?

like image 736
Mostafa Elkady Avatar asked Feb 01 '26 00:02

Mostafa Elkady


2 Answers

PHP doesn't have the built in support to do what your asking. You'll need to

  • Execute another command line script/program that can

  • Install one of the many image manipulation libs and work with that

  • Possibly find a 3rd party API that you can send a request and get a response of the merged images?

  • Do as Emil suggested (Requires install: http://bg.php.net/manual/en/imagick.setup.php)

like image 196
mr-sk Avatar answered Feb 02 '26 15:02

mr-sk


You can use Imagick.

like image 30
Emil Ivanov Avatar answered Feb 02 '26 14:02

Emil Ivanov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!