Search found 158 matches

by Rye
2014-07-19T07:55:38-07:00
Forum: Users
Topic: Repeat command for each line in text file
Replies: 10
Views: 8331

Re: repeat commadn for each line in text file

EDIT: I rewrote it a bit: ------------------------------------------------------------------------------------------------------------------------------------------------------- @echo off SET /P image=Drag and drop the image file you want to remove the background from: copy %image% "%~dp0"...
by Rye
2014-07-19T05:07:42-07:00
Forum: Users
Topic: Repeat command for each line in text file
Replies: 10
Views: 8331

Re: repeat commadn for each line in text file

Ok... I guess I need to be more specific: I want to use a script to: 1. crop a portion of an image 2. analyze said cropped image for all hex codes 3. dump the hex codes to a "hex.txt" 4. replace all of those "hex code colors" with transparency. This is what I came up with, it get...
by Rye
2014-07-19T03:01:17-07:00
Forum: Users
Topic: Repeat command for each line in text file
Replies: 10
Views: 8331

Repeat command for each line in text file

so... I have a text file containing hex lines: hex.txt #8C7CA6 #6C70A5 #75777C #959A90 #7A7C6C #867DAB #80867E #8A87BD #6B71C6 #8F8A79 #9A9DCE #7E87D0 #69709E #82968C #7C8F81 #A3917B #8CAB8C #728170 #95A19C #8FA5A3 #A6CAB3 #A4C7B0 #8FB697 #99BA98 #85A184 I now want this command to loop through all t...
by Rye
2014-07-07T09:47:54-07:00
Forum: Users
Topic: stitch tiles (overlap) to complete map
Replies: 13
Views: 33955

Re: stitch tiles (overlap) to complete map

And I take it, rewriting it for dos is impossible ?

All of the Imgmagickscripts I have run natively under windows.

I'd rather not install cygwin just for this one script
by Rye
2014-07-07T07:51:23-07:00
Forum: Users
Topic: stitch tiles (overlap) to complete map
Replies: 13
Views: 33955

Re: stitch tiles (overlap) to complete map

But the one I posted is dos, isn't it ?

Is the usage the same ?
by Rye
2014-07-07T07:26:30-07:00
Forum: Users
Topic: stitch tiles (overlap) to complete map
Replies: 13
Views: 33955

Re: stitch tiles (overlap) to complete map

Is this overlap script: http://www.imagemagick.org/Usage/scripts/overlap

the same one ?
by Rye
2014-07-07T03:13:42-07:00
Forum: Users
Topic: stitch tiles (overlap) to complete map
Replies: 13
Views: 33955

Re: stitch tiles (overlap) to complete map

OH... so it's linux only...


Can wildcards be used so I can use a folder full of randomly named png files ?
by Rye
2014-07-04T05:54:26-07:00
Forum: Users
Topic: stitch tiles (overlap) to complete map
Replies: 13
Views: 33955

Re: stitch tiles (overlap) to complete map

So for that script you posted:

How would a command look for my case ?
by Rye
2014-07-03T00:49:12-07:00
Forum: Users
Topic: stitch tiles (overlap) to complete map
Replies: 13
Views: 33955

stitch tiles (overlap) to complete map

So. I have the following question: I have multiple parts of an image, like so: https://dl.dropboxusercontent.com/u/14586156/stuff/0_PC_Prog_Dev_support/ImageMagick/Map_Stitching/IMG_8134.png https://dl.dropboxusercontent.com/u/14586156/stuff/0_PC_Prog_Dev_support/ImageMagick/Map_Stitching/IMG_8135.p...
by Rye
2014-06-21T17:10:24-07:00
Forum: Users
Topic: Replace ANY colour Except #ffffff with #000000
Replies: 18
Views: 11823

Re: Replace ANY colour Except #ffffff with #000000

Thats odd... when I execute that command once for %%x in (*gif) do convert %%x ( -clone 0 -fill black -colorize 100 ) +swap -alpha set ( -clone 1 ( -clone 0 +transparent #F4F4FC ) ( -clone 0 +transparent #F7F7FF ) ( -clone 0 +transparent #F9F9FF ) -delete 0 -evaluate set 0 -layers flatten -negate ) ...
by Rye
2014-06-21T11:18:58-07:00
Forum: Users
Topic: Replace ANY colour Except #ffffff with #000000
Replies: 18
Views: 11823

Re: Replace ANY colour Except #ffffff with #000000

Ok, perfect, now it works :)

BTW: colorize seems to only "tone" the color down.

Is there a way to make it pitch black (for example) just by once executing this ?
by Rye
2014-06-21T09:13:13-07:00
Forum: Users
Topic: Identify all colours in picture and output to txt ?
Replies: 22
Views: 24934

Re: Identify all colours in picture and output to txt ?

EDIT: OK, this way it works:

Code: Select all

for /F "usebackq skip=1 tokens=3" %%C ^
in (`%IM%convert ^
  rose: ^
  -depth 8 ^
  txt:`) ^
do echo %%C >>x.txt
findstr # x.txt >> hex.txt
DEL x.txt
This thread can be close :) thanks
by Rye
2014-06-21T01:54:04-07:00
Forum: Users
Topic: Identify all colours in picture and output to txt ?
Replies: 22
Views: 24934

Re: Identify all colours in picture and output to txt ?

Well...
I tried both of your commands.


In my folder I have this:

Code: Select all

001.gif
hex_color.bat
I pasted both codes (one after another) into the hex_color.bat and started it.

Same results as last time.
replacing the rose with 001.gif didn't do any difference to the end result either.
by Rye
2014-06-21T01:40:10-07:00
Forum: Users
Topic: Replace ANY colour Except #ffffff with #000000
Replies: 18
Views: 11823

Re: Replace ANY colour Except #ffffff with #000000

This outputs:
"convert.exe: invalid argument for option '-colorize': #000000 @ error/convert.c/ConvertImageCommand/969."