now if we use
Code: Select all
convert file1.jpg file2.txt
we get a file with strings like
Code: Select all
0,0: (29,54,42) #1D362A srgb(29,54,42)
Code: Select all
convert file1.jpg <here smth where format can be specified> file2.txt
Code: Select all
pixel 0-0 color is #1D362A, pixel 0-1 color is #1D362A, pixel 0-2 color is ...
In the documentation there is an example which involves parsing the string with a shell script, but is there an option to output from the very beginning in the format needed?