1

I want to resize the image to custom width and height(eg: 225 X 225). And filled the remaining area with green background to get the exact custom image size. Using .net imagemagic library.

Fist image:

enter image description here

Resultant Image:

enter image description here

  • 2
    In command line, you would just do `-background green -gravity center -extent WxH` where W and H are the desired dimensions. Sorry, I do not know Magick.Net – fmw42 Jan 11 '22 at 19:46

0 Answers0