Search found 12867 matches

by snibgo
2020-03-13T07:17:54-07:00
Forum: Users
Topic: UnableToOpenConfigureFile colors.xml and type.xml ImageMagick7.0.8-50
Replies: 4
Views: 449

Re: UnableToOpenConfigureFile colors.xml and type.xml ImageMagick7.0.8-50

What version of IM, on what platform?
manik_cr24 wrote:convert.exe: UnableToOpenConfigureFile `colors.xml'
I suspect IM has not been installed properly. Where did you install it from? Did you then move the installed IM to a different directory or computer?
manik_cr24 wrote:Would there be any problem?
Yes.
by snibgo
2020-03-13T07:13:36-07:00
Forum: Users
Topic: Clipping path when Ghostscript Installed
Replies: 8
Views: 624

Re: Clipping path when Ghostscript Installed

What versions of ImageMagick and Ghostscript?

Please link to a sample eps.
by snibgo
2020-03-13T07:09:12-07:00
Forum: Users
Topic: Count amount of non-continuous blocks in an image
Replies: 60
Views: 4608

Re: Count amount of non-continuous blocks in an image

@Peggy: Your results are very different from mine. Your images also look wrong, with horizontal bands.

Please show the command you used, for example for the "six-flower" image. Perhaps the conversion to bash has introduced an error.
by snibgo
2020-03-12T13:42:53-07:00
Forum: Users
Topic: convert -compose minus With custom color
Replies: 5
Views: 524

Re: convert -compose minus With custom color

Then instead of "-compose Minus", you should use "-compose Difference". Then the black output pixels are where the inputs were equal, so "-transparent Black" will make those transparent.
by snibgo
2020-03-12T13:33:00-07:00
Forum: Users
Topic: convert -compose minus With custom color
Replies: 5
Views: 524

Re: convert -compose minus With custom color

It means that any values that are less than zero are changed to be exactly zero. (Also, any values that are more than 100% of QuantumRange are set to exactly QuantumRange. But that can't happen if your inputs are in the range zero to QuantumRange.)
by snibgo
2020-03-12T13:00:31-07:00
Forum: Users
Topic: convert -compose minus With custom color
Replies: 5
Views: 524

Re: convert -compose minus With custom color

I have removed your duplicate post. I don't understand "not use black as a replacement color". Your command replaces each pixel with the result of one pixel minus another pixel. Where the result is negative, values will be clamped to zero. If you don't want clamping, insert "-define compose:clamp=of...
by snibgo
2020-03-12T11:40:05-07:00
Forum: Developers
Topic: Check 21 Conversion from RGB Photo
Replies: 5
Views: 635

Re: Check 21 Conversion from RGB Photo

Do you have ImageMagick? If so, what version, on what platform?

What is a "Check21 compliant B&W TIFF image"?
by snibgo
2020-03-12T06:37:07-07:00
Forum: Users
Topic: Count amount of non-continuous blocks in an image
Replies: 60
Views: 4608

Re: Count amount of non-continuous blocks in an image

The command I showed writes "Unique: N" where N is an integer. This is the number of unique colours found after de-anti-aliasing. That number is not important to you. What number is important to you? I think you want to count the connected components that are not the transparent background colour. I...
by snibgo
2020-03-11T13:18:53-07:00
Forum: Bugs
Topic: Possible bug -fx min vs -evaluate-sequence min
Replies: 5
Views: 680

Re: Possible bug -fx min vs -evaluate-sequence min

I confirm the problem. It seems to occur only when we have three arguments to min(). So a workaround is:

min(u.r,min(u.g,u.b))

I've edited my recent reply https://www.imagemagick.org/discourse-s ... 32#p173232
by snibgo
2020-03-11T10:24:01-07:00
Forum: Users
Topic: -fx function use for neutral gray filter
Replies: 2
Views: 559

Re: -fx function use for neutral gray filter

Windows syntax:

Code: Select all

magick ^
  in.png ^
  -fx "max(u.r,max(u.g,u.b))-min(u.r,min(u.g,u.b))>0.1?u:(u.r+u.g+u.b)/3" ^
  out.png
Note that all values are (usually) in the range 0.0 to 1.0.

EDIT Corrected for possible bug https://www.imagemagick.org/discourse-s ... =3&t=37676
by snibgo
2020-03-11T09:28:10-07:00
Forum: Users
Topic: Why is it that 5 separate command prompts crop 30 images faster on my PC than a single batch mogrify command on all 150?
Replies: 2
Views: 454

Re: Why is it that 5 separate command prompts crop 30 images faster on my PC than a single batch mogrify command on all

When evaluating performance, it is helpful to see what CPU, RAM and disk resources are used. With Windows 7.1, I can run taskmgr and/or perfmon etc. Questions to ask are: are my CPUs 100% busy? If not, a different job configuration may give better throughput. Is RAM over-used? (If it is, there may b...
by snibgo
2020-03-11T05:11:11-07:00
Forum: Users
Topic: Count amount of non-continuous blocks in an image
Replies: 60
Views: 4608

Re: Count amount of non-continuous blocks in an image

"+antialias" is a setting to prevent operations from anti-aliasing pixels. It does not remove anti-aliasing. I pointed you to a thread https://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=37649 where I show a command to remove anti-aliasing. For example (Windows BAT syntax): magick ^ pen...
by snibgo
2020-03-11T03:59:56-07:00
Forum: Users
Topic: Count amount of non-continuous blocks in an image
Replies: 60
Views: 4608

Re: Count amount of non-continuous blocks in an image

Your images have anti-aliasing between solid colours. I have already showed you a command to remove anti-aliasing.
by snibgo
2020-03-11T02:31:28-07:00
Forum: Users
Topic: Count amount of non-continuous blocks in an image
Replies: 60
Views: 4608

Re: Count amount of non-continuous blocks in an image

Peggy wrote:Could I detect the image whether contains a specific color?
Your "red-drop" image has 8 bits/channel/pixel. So the colour #000100000000 which is very nearly black is guaranteed not to be in your image. For this to work, your IM can't be Q8. It must be Q16 or larger.
by snibgo
2020-03-11T01:13:06-07:00
Forum: Users
Topic: Count amount of non-continuous blocks in an image
Replies: 60
Views: 4608

Re: Count amount of non-continuous blocks in an image

I suggest you flatten against a colour that isn't already used, eg black in this case. Then there is no alpha, and the problem is simpler. "Connected-components" then finds the four areas. magick f.png -background Black -layers Flatten -alpha off -define connected-components:verbose=true -define con...