Results 1 to 6 of 6

Thread: Combine Two Images In Command Line

  1. #1
    Join Date
    May 2007
    Location
    Canada
    Beans
    581

    Combine Two Images In Command Line

    Hi,
    I am writing a bash script and am stumped by a seemingly simple problem. I want to combine two images into one image with a 70 percent overlay. To better explain, here is my current gimp workflow:

    -open gimp
    -load two separate images into layers (one image per layer)
    -move slider to a 70% overlay
    -merge layers (aka flatten image)
    -save as one image

    Is it possible to do this via the command line?

    Surprisingly there are no references on the web to this specific problem, Please Help!


    64-Bit Ubuntu! Join the future of computing.

  2. #2
    Join Date
    Aug 2009
    Beans
    296
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Combine Two Images In Command Line

    Haha!
    I've been a graphic artist for many years and I'd also like to know how to do this. edit: for my resume.

  3. #3
    Join Date
    Nov 2008
    Location
    Omaha, NE
    Beans
    Hidden!

    Re: Combine Two Images In Command Line

    This can be done using the composite tool supplied with imagemagick.

    The command I used was:
    Code:
    composite -blend 30 metalflower.png linux.png result.png
    This command can certainly be used for more complex mergings, but I just wanted to give you a simple example to start with. Happy editing!
    Last edited by ghost1227; May 15th, 2010 at 06:43 PM.

  4. #4
    Join Date
    May 2007
    Location
    Canada
    Beans
    581

    Re: Combine Two Images In Command Line

    Quote Originally Posted by ghost1227 View Post
    This can be done using the composite tool supplied with imagemagick. I used this technique to make the following (crappy) example image:


    The command I used was:
    Code:
    composite -blend 30 metalflower.png linux.png result.png
    This command can certainly be used for more complex mergings, but I just wanted to give you a simple example to start with. Happy editing!
    THANK YOU!! I knew there had to be a simple answer! You rock!


    64-Bit Ubuntu! Join the future of computing.

  5. #5
    Join Date
    Nov 2008
    Location
    Omaha, NE
    Beans
    Hidden!

    Re: Combine Two Images In Command Line

    Quote Originally Posted by cubeist View Post
    thank you!! I knew there had to be a simple answer! You rock!
    np

  6. #6
    Join Date
    Aug 2009
    Beans
    296
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Combine Two Images In Command Line

    sweet!! thanks.

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
  •