Results 1 to 2 of 2

Thread: looking for a way to connect images

  1. #1
    Join Date
    Jan 2007
    Location
    Davenport, Iowa
    Posts
    2,146
    Thanks
    96
    Thanked 98 Times in 96 Posts

    Default looking for a way to connect images

    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

  2. #2
    Join Date
    Jan 2007
    Location
    Davenport, Iowa
    Posts
    2,146
    Thanks
    96
    Thanked 98 Times in 96 Posts

    Default

    Got it. This needed php's ImageMagick as opposed to using the GD library.

    It is as simple as:

    PHP Code:
    <?php
    system
    ("convert image1.jpg image2.jpg +append montage_cat2.jpg");
    ?>
    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.

    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

Similar Threads

  1. I do not know how to connect 3g network!
    By quehuongtoi2 in forum Other
    Replies: 1
    Last Post: 04-29-2013, 03:00 AM
  2. Help with FB connect
    By midhul in forum PHP
    Replies: 10
    Last Post: 07-04-2010, 10:00 AM
  3. OOP db connect
    By city_coder in forum PHP
    Replies: 1
    Last Post: 02-07-2010, 07:30 PM
  4. mysql connect
    By lay in forum MySQL and other databases
    Replies: 3
    Last Post: 03-06-2009, 01:51 AM
  5. How Does ASP.NET Connect to My SQL
    By tomyknoker in forum ASP
    Replies: 4
    Last Post: 03-02-2007, 05:51 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •