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
MagickDeskewImage background color
-
- Posts: 6
- Joined: 2012-06-17T17:10:46-07:00
- Authentication code: 13
-
- Posts: 1015
- Joined: 2005-03-21T21:16:57-07:00
Re: MagickDeskewImage background color
Try setting the background colour before the deskew.
Pete
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.
See my message in this topic for a link to a zip of all the files.
-
- Posts: 6
- Joined: 2012-06-17T17:10:46-07:00
- Authentication code: 13
Re: MagickDeskewImage background color
Thanks Pete!