Search found 10 matches

by kraftydevil
2019-06-26T15:32:18-07:00
Forum: Users
Topic: Reading subimage-search command line results
Replies: 1
Views: 4755

Reading subimage-search command line results

compare -metric RMSE -subimage-search writes a value with format 'A (B) @ X,Y' to stderr. Examples: 0 (0) @ 94,86 15903.7 (0.242675) @ 233,304 22620 (0.34516) @ 614,126 So far I'm pretty sure of these values: B = similarity threshold of match X = x-coordinate of match Y = y-coordinate of match Ques...
by kraftydevil
2019-05-19T20:26:13-07:00
Forum: Users
Topic: Find sub-image while ignoring transparent pixels
Replies: 4
Views: 4845

Re: Find sub-image while ignoring transparent pixels

You can do that in Imagemagick 7 only. It is done using a mask image. You need to extract he mask from the alpha channel. See https://imagemagick.org/discourse-server/viewtopic.php?f=4&t=31053 For you cursor, your smaller image and the mask image must be the same size as the cursor you are tryi...
by kraftydevil
2019-05-19T15:03:46-07:00
Forum: Users
Topic: Find sub-image while ignoring transparent pixels
Replies: 4
Views: 4845

Find sub-image while ignoring transparent pixels

I'd like to take an image containing transparent pixels and search for its opaque pixels inside another image, obtaining its location. Example Image 1, containing transparent pixels: https://i.imgur.com/9fnOhTD.png Image 2: https://i.imgur.com/8rzWp5T.png Concept The transparent pixels in Image 1 sh...
by kraftydevil
2019-01-24T14:48:37-07:00
Forum: Users
Topic: Image not trimmed properly
Replies: 3
Views: 3148

Re: Image not trimmed properly

If you don't use "-fuzz", then "-trim" will do nothing to edges that have different pixels. Your edges in th second image have different pixels -- they are mostly transparent white, but the top-left and bottom-right pixels are not. You can either fix those pixels, or use "-...
by kraftydevil
2019-01-24T05:51:28-07:00
Forum: Users
Topic: Image not trimmed properly
Replies: 3
Views: 3148

Image not trimmed properly

Version: ImageMagick 6.9.10-7 Q16 x86_64 I'm using a basic trim command: convert image.png -trim +repage image_trimmed.png It works on some images but not all of them and I'm not sure why. Works: https://i.imgur.com/onkzC20.png Doesn't work: https://i.imgur.com/nq2n6AI.png What's going on here and h...
by kraftydevil
2018-10-29T12:47:13-07:00
Forum: Users
Topic: Find areas of interest in an image
Replies: 6
Views: 5470

Re: Find areas of interest in an image

Andi34 wrote: 2018-10-28T12:35:45-07:00

Code: Select all

convert ... -colorspace Gray -auto-gamma -sharpen 2x1 -statistic StandardDeviation
I've tried this but I'm getting:

Code: Select all

convert: option requires an argument `-statistic' @ error/convert.c/ConvertImageCommand/2880.
Why would StandardDeviation not be found as an option?
by kraftydevil
2017-05-02T06:05:52-07:00
Forum: Users
Topic: convert producing invalid pdfs from jpgs
Replies: 12
Views: 18283

Re: convert producing invalid pdfs from jpgs

By "reproducible" I mean by other people. If no-one can reproduce your problem, they can't fix it. I suppose I can only share my personal experience and frequency when reproducing this issue. Here's a formal write up for others to try. It's not much more complex than what I've mentioned i...
by kraftydevil
2017-05-02T03:53:34-07:00
Forum: Users
Topic: convert producing invalid pdfs from jpgs
Replies: 12
Views: 18283

Re: convert producing invalid pdfs from jpgs

IM uses Ghostscript to read PDFs, but not to write PDFs. This may be a bug introduced in v7.0.5-5. kraftydevil: can you make a reproducible example? A test command that, when run, makes a bad PDF? Then other people can test. This is reproducible about 80% of the time: convert path/to/images/*.jpg n...
by kraftydevil
2017-05-02T03:49:07-07:00
Forum: Users
Topic: convert producing invalid pdfs from jpgs
Replies: 12
Views: 18283

Re: convert producing invalid pdfs from jpgs

At first I thought it might be a version issue, but it always works on an older version: Bugs can be written in by mistake and it is not as though both versions are V6 versions. Are you using the same version of Ghostscript? V7 prefers magick rather than convert; give that a go. gs is 9.18 in the w...
by kraftydevil
2017-05-01T23:16:57-07:00
Forum: Users
Topic: convert producing invalid pdfs from jpgs
Replies: 12
Views: 18283

convert producing invalid pdfs from jpgs

I've got 2 Mac OS X machines with ImageMagick installed. One machine always works and one machine produces unreadable pdfs about 80% of the time. Either they don't open or there are blank pages after a certain point. I'm using the basic convert command for jpg > pdf: convert path/to/images/*.jpg nam...