AnsweredAssumed Answered

MonkeyBread software CROP command

Question asked by manoj on Nov 11, 2016
Latest reply on Nov 11, 2016 by monkeybreadsoftware

When I tried to crop image using

Let ( [

$Image = MBS("GMImage.NewFromContainer"; GraphicsMagick::image);

$Width = MBS("GMImage.GetWidth";$Image);

$Height = MBS("GMImage.GetHeight";$Image);

$Width = $Width/2;

$Height = $Height/2;

$ScaleResult = MBS("GMImage.Crop";$Image; $Width & "x" & $Height);

$Result = MBS("GMImage.WriteToPNGContainer"; $Image);

$Error = MBS("GMImage.Destroy";$Image)

];

$Result)

 

It is saving the original pic only...

Outcomes