5 Replies Latest reply on Nov 11, 2016 3:36 AM by monkeybreadsoftware

    MonkeyBread software CROP command

    manoj

      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...