remove this background for this invoice?

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
diegomage
Posts: 205
Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151

remove this background for this invoice?

Post by diegomage »

Im trying to remove this background using compare but not works


this is my image
Image

and this is the background
Image


How I could remove this background

Please help me
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: remove this background for this invoice?

Post by fmw42 »

What is your IM version and platform? What have you tried -- what was your exact command line?
diegomage
Posts: 205
Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151

Re: remove this background for this invoice?

Post by diegomage »

fmw42 wrote: 2017-06-04T15:58:52-07:00 What is your IM version and platform? What have you tried -- what was your exact command line?
my version is imagemagick 6.9.8.3


i try this

Code: Select all

compare   image    background  result
and this

Code: Select all

convert result       -fuzz 5% -fill white  +opaque "#c10018"  fuzzed
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: remove this background for this invoice?

Post by fmw42 »

I do not understand. Your second image is what you want for the result? Or do you desire to use the second image to remove the lines in the first image keeping only the text?

Neither of your commands appear to work to achieve either of these options. So to give you better support, we need to understand what you are trying to do.
diegomage
Posts: 205
Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151

Re: remove this background for this invoice?

Post by diegomage »

fmw42 wrote: 2017-06-04T21:28:29-07:00 I do not understand. Your second image is what you want for the result? Or do you desire to use the second image to remove the lines in the first image keeping only the text?

Neither of your commands appear to work to achieve either of these options. So to give you better support, we need to understand what you are trying to do.


I need remove the background and keep only text
Post Reply