【发布时间】:2014-08-30 18:56:32
【问题描述】:
每当我尝试执行以下 shell 命令时,它都能正常工作。
convert maanavulu_GIST-TLOTKrishna.tif -alpha set -matte -virtual-pixel transparent -set option:distort:viewport 1000x1000 -distort perspective-projection '1.06,0.5,0,0,1.2,0,0,0' -trim 1.jpg
但是,每当我尝试将命令分配给变量然后执行它时,它都会报告以下错误。
convert.im6: invalid argument for option PerspectiveProjection : 'Needs 8 coefficient values' @ error/distort.c/GenerateCoefficients/873.
【问题讨论】:
-
whenever I try assign the command to a variable and then execute it怎么样,可以给代码吗? -
“将命令分配给变量然后执行它”到底是什么意思。像
cmd="..."; $cmd这样的东西有各种各样的问题:见mywiki.wooledge.org/BashFAQ/050。
标签: bash shell imagemagick-convert