trying to get data out using versions of -output. I tried .txt and .asc Problem is to get custom outputs.
So I have
gmic script.gmic img.png -foo
--colormap. 8 .round. index..  -rm.
-s y -compress_rle , -rows 6,100%
# compress_rle generates a column vector, so roll into a row vector, and add all row vectors together
-y x -a y
So I am looking for a line by line rle type output, with each output line matching a pixel row.
However, the output is padded on the right by zeros.
How would I remove the 0's ?
I wanted to output row by row, appending to a single file. But couldn't find a neat way to do this.
Also I found the function -img2string which produced a string in a form I could use, but I couldn't work out how to put the string into an output file.
The aim is to take data generated by gmic for use by other programs.
Whilst I can easily see how the formats .asc, .txt and .h are structured, I couldn't quickly find the format for .cimg