Search found 82 matches

by coloring
2019-01-02T13:46:01-07:00
Forum: Users
Topic: Compose: Overlay over multiple coordinates w/o loop [Solved]
Replies: 14
Views: 14650

Re: Compose: Overlay over multiple coordinates w/o loop

Okay. It just seemed odd that they are all the same size (18,945 KB).
by coloring
2019-01-02T13:11:01-07:00
Forum: Users
Topic: Compose: Overlay over multiple coordinates w/o loop [Solved]
Replies: 14
Views: 14650

Re: Compose: Overlay over multiple coordinates w/o loop

If your command is too long for the shell, write it to a file without the executable name or shell escapes, and run it as a magick script: magick -script myscript.txt A godsend! Aren't compare.exe, composite.exe, conjure.exe, convert.exe, identify.exe, magick.exe, mogrify.exe, montage.exe, and stre...
by coloring
2018-12-31T14:04:20-07:00
Forum: Users
Topic: Compose: Overlay over multiple coordinates w/o loop [Solved]
Replies: 14
Views: 14650

Re: Compose: Overlay over multiple coordinates w/o loop

80% of the time, yes. I will add a loop to execute IM for every group of 238 coordinates to overcome this limitation. Does that mean there are no shortcuts for -clone and -set page? How come spaces inside the brackets are necessary?
by coloring
2018-12-31T13:45:36-07:00
Forum: Users
Topic: Compose: Overlay over multiple coordinates w/o loop [Solved]
Replies: 14
Views: 14650

Re: Compose: Overlay over multiple coordinates w/o loop

In Windows, with the maximum length of the command string being limited to 8191 characters and "( -clone 1 -set page +NNNN+NNNN ) " taking up 34 characters -- assuming no shorter forms exist --, the number of coordinates that can fit in a single line is at least 238.

Code: Select all

(8191-90)/34=238
by coloring
2018-12-31T11:57:23-07:00
Forum: Users
Topic: Compose: Overlay over multiple coordinates w/o loop [Solved]
Replies: 14
Views: 14650

Re: Compose: Overlay over multiple coordinates w/o loop

Thanks! What what if the number of coordinates is not fixed? Can I provide a text file with a list of coordinates? The Pins in a Map example is close, but I am running plain Windows. If not, perhaps I could use a loop to generate the command text, and then execute the result. The idea is to avoid ex...
by coloring
2018-12-31T11:00:25-07:00
Forum: Users
Topic: Compose: Overlay over multiple coordinates w/o loop [Solved]
Replies: 14
Views: 14650

Compose: Overlay over multiple coordinates w/o loop [Solved]

How can I overlay Small.png over Large.png at multiple coordinates without a loop? I am currently looping this command (+0+0 is replaced with different coordinates every iteration): convert.exe Large.png Small.png -geometry +0+0 -compose over -composite Large.png Could I "-geometry" accept...
by coloring
2018-12-26T13:32:50-07:00
Forum: Users
Topic: Replace placeholder area with different image
Replies: 18
Views: 13703

Re: Replace placeholder area with different image

From: https://cdn.imgpaste.net/2018/12/27/HNpfS.png To: https://cdn.imgpaste.net/2018/12/27/HN8pm.png Please note that fonts are not anti-aliased, so pixel-perfect matching should be possible. Modifying the data before taking the screenshot is not an option given the amount of screenshots to process...
by coloring
2018-12-21T15:01:33-07:00
Forum: Users
Topic: Replace placeholder area with different image
Replies: 18
Views: 13703

Re: Replace placeholder area with different image

The red squares represent digits, icons, and sometimes letters in screenshots. They are always smaller than 32x32 (usually about 16x16), and there can be up to 50 instances in a single source screenshot.
by coloring
2018-12-21T14:15:11-07:00
Forum: Users
Topic: Replace placeholder area with different image
Replies: 18
Views: 13703

Re: Replace placeholder area with different image

Thanks guys. The example image I provided is very close to what I am working with, except that my images are up to 1024x760px in size. Another thing I should have mentioned is that there are multiple red squares that need to be replaced by a blue one. What I essentially need is a `sed s//g` type of ...
by coloring
2018-12-12T14:35:13-07:00
Forum: Users
Topic: Replace placeholder area with different image
Replies: 18
Views: 13703

Re: Replace placeholder area with different image

Is there a faster solution? `compare` takes almost 30 seconds on medium-sized images (1024x768).

Also, I forgot to mention that there can be more than one red rectangle in the source image.
by coloring
2018-12-12T12:45:05-07:00
Forum: Users
Topic: Replace placeholder area with different image
Replies: 18
Views: 13703

Re: Replace placeholder area with different image

Thanks snibgo and fmw42. This is exactly what I wanted to do. Is it possible to use the output of `compare` (60,0) inside `convert` within ImageMagick, or will I have to resort to a shell/batch file to extract and format the output of `compare` before inputting it into `convert`? I will be using the...
by coloring
2018-12-12T10:44:43-07:00
Forum: Users
Topic: Replace placeholder area with different image
Replies: 18
Views: 13703

Replace placeholder area with different image

Given image X, how can I replace placeholder area Y with image Z using Imagemagick?

- The coordinates of Y within X are not known and can vary.
- X and Z are the same size.


X: █████████
Y:
Z:
by coloring
2018-03-04T12:50:45-07:00
Forum: Users
Topic: Write-mask not working with define connected components?
Replies: 10
Views: 7292

Re: Write-mask not working with define connected components?

My solution Line 1, create mask from image, do morphology edgeout 2, replace the background black with transparent on the mask 3, combine the mask with the edgeout in order to show only holes that shouldn't be there 4, fill the entire background with white to reveal only the holes to fill in (which ...
by coloring
2018-03-03T16:22:48-07:00
Forum: Users
Topic: Write-mask not working with define connected components?
Replies: 10
Views: 7292

Re: Write-mask not working with define connected components?

Forgive me, I've never done any image work, ever, and I'm also completely new to IM. Still trying to explain it best I can and figure it out. Start image https://image.ibb.co/cMWof7/bitmoji432844786.png End current result (see the gap inside?) https://preview.ibb.co/msHmHn/bitmoji432844786_png.gif W...
by coloring
2018-03-03T15:36:45-07:00
Forum: Users
Topic: Write-mask not working with define connected components?
Replies: 10
Views: 7292

Re: Write-mask not working with define connected components?

From my limited understanding and what I've read in the docs, it seems that I need to do a morphology close on a extracted alpha copy (not sure what to call that). So I still need to: 1, figure out how to first combine the alpha extracted copy with the edge image to create a complete white mask (exc...