I'm still working with images. This time what I am trying to figure out is how to use php to knit two images together side by side.
Any help would be appreciated.
I'm still working with images. This time what I am trying to figure out is how to use php to knit two images together side by side.
Any help would be appreciated.
Last edited by james438; 11-03-2019 at 06:19 AM. Reason: typo
To choose the lesser of two evils is still to choose evil. My personal site
Got it. This needed php's ImageMagick as opposed to using the GD library.
It is as simple as:
The script takes image1.jpg and image2.jpg and creates a third image montage_cat2.jpg. If montage_cat2.jpg already exists, it is overwritten. If the images are different sizes then there will be extra white space located below the smaller image.PHP Code:
<?php
system("convert image1.jpg image2.jpg +append montage_cat2.jpg");
?>
https://imagemagick.org/script/comma...ons.php#append
Last edited by james438; 11-03-2019 at 06:25 AM. Reason: added reference link.
To choose the lesser of two evils is still to choose evil. My personal site
Bookmarks