Code: Select all
for /F "usebackq skip=1 tokens=6 delims=():, " %%C ^
in (`convert ^
rose: ^
-unique-colors ^
txt:`) ^
do echo %%C >>x.txt
Code: Select all
for /F "usebackq skip=1 tokens=6 delims=():, " %%C ^
in (`convert ^
rose: ^
-unique-colors ^
txt:`) ^
do echo %%C >>x.txt
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
Code: Select all
for /F "usebackq skip=1 tokens=3" %%C ^
in (`%IM%convert ^
rose: ^
txt:`) ^
do echo %%C >>x.txt
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
Code: Select all
convert img.jpg -unique-colors -depth 8 txt:- > out.txt
How do you know it has stopped? Perhaps it was still working, and you killed it. If your image is large, it will take a long time.Rye wrote:However as soon as I replace rose: with 0001.jpg (f.e.), the script just stops.