Jump to content

Recommended Posts

Posted

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.

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
×
×
  • Create New...