Setting Background colour when resizing canvas

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

Moderators: XnTriq, xnview

Post Reply
Hochi

Setting Background colour when resizing canvas

Post by Hochi » Tue Nov 16, 2004 11:33 pm

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: 8172
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: -canvas

Post by helmut » Wed Nov 17, 2004 7:01 am

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