Jump to content

Imagemagick Compose or convert overlay


Recommended Posts

I been trying to use imagemagick to put an image on top of another image but i have no clue why I can't get anything to create.

I don't really understand the syntax of the compose.. i have been able to resize and crop images with convert.

can anyone help me with the syntax please?

here's the code for the syntax for convert

Func fiximage($filename)

$B1=0

$D1=0

$M1=0

$var = StringLeft($filename, 11)

$var2 = StringRight($filename,16)

$B1 = StringInStr($filename, "B1")

If $B1 > 0 Then

$newfilename = $var & "-2.png"

$img = ObjCreate("ImageMagickObject.MagickImage.1")

$ret = $img.Convert($filename, _

"-resize", "378x392", _

"-crop", "282x392+48+0", _

$OD & $newfilename )

Return

EndIf

this is making my head spin

thank you.

Link to comment
Share on other sites

  • Moderators

Hi, tn04462. Glad you found your answer, care to share with the community? Your answer may help someone else doing a forum search on this subject some day ;)

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...