Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8520101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:26:28+00:00 2026-06-11T06:26:28+00:00

In ImageMagick, I can create a composite in three discrete steps. I corner pin

  • 0

In ImageMagick, I can create a composite in three discrete steps. I corner pin the first image, then the second image. I then composite and place those two images on top of the background image:

convert .\source1.png -matte -virtual-pixel transparent -distort Perspective '0,0,27,211 0,278,197,266 500,0,176,19 500,278,323,48' source1a.png
convert .\source2.png -matte -virtual-pixel transparent -distort Perspective '0,0,2,72 0,278,86,181 500,0,215,2 500,278,311,85' source2a.png
convert .\card.png -page +253+41 .\source2a.png -page +0+98 .\source1a.png -layers flatten fred4.png

For some reason Windows doesn’t respond to grouping these commands in parentheses as I would expect:

convert .\card.png -page +253+41 (.\source1.png -matte -virtual-pixel transparent -distort Perspective '0,0,27,211 0,278,197,266 500,0,176,19 500,278,323,48') -page +0+98 (.\source2.png -matte -virtual-pixel transparent -distort Perspective '0,0,2,72 0,278,86,181 500,0,215,2 500,278,311,85') -layers flatten fred4.png

For some reason when I execute the above command it opens Viewers for each image, and the output is wrong.

Is there a way to do this without having to write out the two intermediate images? Ideally, I could place the image on the background, then do the corner pin in the coordinate space of the background image. Any ideas would be extremely helpful.

Many thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T06:26:29+00:00Added an answer on June 11, 2026 at 6:26 am

    When you group commands with parentheses you are required to leave (at least) one blank on each side of the ( and ) characters. This is well documented, and also all the examples do show it! (On Unix one has even to escape them and use \( and \) for grouping ImageMagick commands).

    So this should work for you on Windows:

    convert                   ^
      card.png                ^
     -page +253+41            ^
        (                     ^
          source1.png         ^
         -matte               ^
         -virtual-pixel transparent ^
         -distort Perspective '0,0,27,211 0,278,197,266 500,0,176,19 500,278,323,48' ^
        )                     ^
     -page +0+98              ^
        (                     ^
          source2.png         ^
         -matte               ^
         -virtual-pixel transparent ^
         -distort Perspective '0,0,2,72  0,278,86,181  500,0,215,2  500,278,311,85'  ^
        )                     ^
     -layers flatten          ^
      fred4.png
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create a flare image using imagemagick and then add text on
I am handling a uploading image file using PHP, then using ImageMagick to create
i know there is a convert -swirl effect in imagemagick but can i create
Can we find which color is dominant in an image using Java, ImageMagick ,
How to create a new image with imagemagick? exec('/usr/local/bin/convert -size 900x360 -quality 90 xc:white
I can't get PHP to recognize the ImageMagick (Imagick) class. Everything else works, the
I'm going to write a function for thumbnail creation. I can use both Imagemagick
I'm looking almost hour for examples of using imagemagick.net in c# and I can't
How do I create gradients with ImageMagick in C++? I am trying to create
How can you use imagemagick from python without opening a new command line window

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.