Jump to content
Sign in to follow this  
tn04462

Imagemagick Compose or convert overlay

Recommended Posts

tn04462

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.

Share this post


Link to post
Share on other sites
tn04462

found the answer to this . thank you .

Share this post


Link to post
Share on other sites
JLogan3o13

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 ;)


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.