Page 1 of 1

Use of -clone with single input image - UNIX

Posted: 2017-07-01T19:56:47-07:00
by geoland
Version: ImageMagick 7.0.6-0 Q16 x86_64 2017-06-26 xubuntu 16.04

Hi

Is -clone the correct operator here? Single input image two outputs

Code: Select all

convert stack.tiff \( -clone 0 -depth 16 +compress -alpha off out.png \) -depth 16 +compress -alpha off out.tiff
error
convert: unable to open image 'out.png':
Tried a number of variations +clone, -clone 0--1, clone -1 same error.

Re: Use of -clone with single input image - UNIX

Posted: 2017-07-01T20:08:55-07:00
by fmw42
You have to explicitly call +write inside parenthesis. So

Code: Select all

convert stack.tiff \( -clone 0 -depth 16 +compress -alpha off +write out.png \) -depth 16 +compress -alpha off out.tiff

Re: Use of -clone with single input image - UNIX

Posted: 2017-07-01T20:55:15-07:00
by geoland
Of course!!! Thanks