Hi Guys I want to fill outside of the circle, leaving letters in the middle, and the rest one solid color
The ideal is letters Black and the rest white, its possible?
The image:
[Help Wanted] Fill outside of the circle
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: [Help Wanted] Fill outside of the circle
What is your IM version and platform? Please always provide that, since syntax differs. Try the following:
Code: Select all
convert input.jpg -fuzz 50% -fill black -opaque black -bordercolor white -border 2 -fill black -draw "color 0,0 floodfill" -alpha off -negate result.png
Re: [Help Wanted] Fill outside of the circle
@fmw42 Thanks for the response!fmw42 wrote: ↑2017-07-04T01:03:38-07:00 What is your IM version and platform? Please always provide that, since syntax differs. Try the following:
Code: Select all
convert input.jpg -fuzz 50% -fill black -opaque black -bordercolor white -border 2 -fill black -draw "color 0,0 floodfill" -alpha off -negate result.png
The version:
Code: Select all
$ identify --version
Version: ImageMagick 6.8.9-9 Q16 x86_64 2017-05-26 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules OpenMP
Delegates: bzlib cairo djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png rsvg tiff wmf x xml zlib
But opening with my OCR software, I got an error
Code: Select all
Warning. Invalid resolution 0 dpi.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: [Help Wanted] Fill outside of the circle
try simply adding units and density.
Code: Select all
convert input.jpg -fuzz 50% -fill black -opaque black -bordercolor white -border 2 -fill black -draw "color 0,0 floodfill" -alpha off -negate -units pixelsperinch -density 72 result.png