Setting Background colour when resizing canvas

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: helmut, XnTriq, xnview

Post Reply
Hochi

Setting Background colour when resizing canvas

Post by Hochi »

I want to resize my images in canvas to 200x150 with white background.

nconvert -canvas 640 480 001.jpg

but the color is black!!!?????? i want white!!!!

please help me :!:
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: -canvas

Post by helmut »

Hochi wrote:I want to resize my images in canvas to 200x150 with white background.

nconvert -canvas 640 480 001.jpg

but the color is black!!!?????? i want white!!!!

please help me :!:
Think you have to use the parameter -bgcolor <Red value> <Green value> <Blue value>, e.g.

nconvert -canvas 640 480 -bgcolor 255 255 255 001.jpg

for a white background.
Post Reply