MagickDeskewImage background color

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
harryspier
Posts: 6
Joined: 2012-06-17T17:10:46-07:00
Authentication code: 13

MagickDeskewImage background color

Post 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
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: MagickDeskewImage background color

Post by el_supremo »

Try setting the background colour before the deskew.

Pete
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
harryspier
Posts: 6
Joined: 2012-06-17T17:10:46-07:00
Authentication code: 13

Re: MagickDeskewImage background color

Post by harryspier »

Thanks Pete!
Post Reply