Page 1 of 1

MagickDeskewImage background color

Posted: 2012-07-29T11:33:13-07:00
by harryspier
When I use MagickDeskewImage from the C Wand API to deskew an image input from MagickReadImage, if the input file is a jpg then the additional background from the deskew rotation is white, but if the input file is a gif file then the additional background from the deskew rotation is black.

The application I'm developing is an OCR application so I need the additional background white. Is there any way I can have a white background no matter the type of input image file?

Is this a but in MagickDeskewImage?

Thanks,
Harry Spier

Re: MagickDeskewImage background color

Posted: 2012-07-29T12:23:15-07:00
by el_supremo
Try setting the background colour before the deskew.

Pete

Re: MagickDeskewImage background color

Posted: 2012-07-30T18:36:59-07:00
by harryspier
Thanks Pete!