For clarity, I split it into lines. Use whatever line-continuation characters your script language needs.
Code: Select all
convert
"file.CR2"
-depth 8
( -clone 0 -resize 30x30^ -type Grayscale -depth 8 txt:- )
( -clone 1 -resize 30x30^ -type Grayscale -depth 8 txt:- )
There is no output file, so the syntax is invalid. You can throw output away with NULL:
Code: Select all
convert
"file.CR2"
-depth 8
( -clone 0 -resize 30x30^ -type Grayscale -depth 8 txt:- )
( -clone 1 -resize 30x30^ -type Grayscale -depth 8 txt:- )
NULL:
I don't understand what you are trying to do. Reading the CR2 file makes an image. You clone this, resize etc, then read text input. It waits for you to type it in. Did you mean to
write text output?
Code: Select all
convert
"file.CR2"
-depth 8
( -clone 0 -resize 30x30^ -type Grayscale -depth 8 +write txt:- )
( -clone 1 -resize 30x30^ -type Grayscale -depth 8 +write txt:- )
NULL:
After the first "write txt", you have two images in the list, numbered 0 and 1. So "-clone 1" makes a copy of the second image, which is already resized. Maybe you want to clone image 0 again. But why do exactly the same operation twice?
Perhaps you want to resize etc, and write the result twice. Then you don't need to clone. Just write however many times you want.
Code: Select all
convert
"file.CR2"
-depth 8
-resize 30x30^ -type Grayscale -depth 8
+write txt:-
+write txt:-
NULL:
"-depth 8" won't speed up the read. It only affects the output.