I found the solution :
Code: Select all
nconvert -resize 100% 100% -canvas 400 400 center -bgcolor 255 255 255 -o c:\result.jpg c:\try.jpg
Is it possible to know the maximum size of my picture to chose the correct size of the canvas ?
Thank you
Code: Select all
nconvert -resize 100% 100% -canvas 400 400 center -bgcolor 255 255 255 -o c:\result.jpg c:\try.jpg