"CLI arg 1 @ error"can somebody help me?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
sfon
Posts: 4
Joined: 2017-10-25T09:01:59-07:00
Authentication code: 1151

"CLI arg 1 @ error"can somebody help me?

Post by sfon »

magick -size 640x480 logo.gif
magick: no images for write '-write' 'logo.gif' at CLI arg 3 @ error/operation.c/CLINoImageOperator/4789.
magick -transpose logo.gif
magick: no images found for operation `-transpose' at CLI arg 1 @ error/operation.c/CLIOption/5266
sfon
Posts: 4
Joined: 2017-10-25T09:01:59-07:00
Authentication code: 1151

Re: "CLI arg 1 @ error"can somebody help me?

Post by sfon »

magick -rotate 90 logo.gif
magick: no images found for operation `-rotate' at CLI arg 1 @ error/operation.c/CLIOption/5266

uname -a
Linux Centos 3.10.0-693.2.2.el7.x86_64 #1 SMP Tue Sep 12 22:26:13 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
sfon
Posts: 4
Joined: 2017-10-25T09:01:59-07:00
Authentication code: 1151

Re: "CLI arg 1 @ error"can somebody help me?

Post by sfon »

magick --version
Version: ImageMagick 7.0.7-8 Q16 x86_64 2017-10-15 http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenMP
Delegates (built-in): bzlib cairo djvu fftw fontconfig fpx freetype gslib jng jpeg lcms ltdl lzma pangocairo png ps tiff webp wmf x xml zlib
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: "CLI arg 1 @ error"can somebody help me?

Post by fmw42 »

magick -size 640x480 logo.gif
There is no output image and -size 640x480 does nothing without a command such as xc:red. Try creating your logo.gif from the IM internal logo: image. See http://www.imagemagick.org/script/forma ... tin-images

Code: Select all

magick logo: logo.gif
Then

Code: Select all

magick logo.gif -rotate 90 logo_rot90.gif
Each command needs an input and output image, though the output name can be the same as the input name.

If you want to resize the image, then

Code: Select all

magick logo.gif -resize 50% logo_resized.gif
sfon
Posts: 4
Joined: 2017-10-25T09:01:59-07:00
Authentication code: 1151

Re: "CLI arg 1 @ error"can somebody help me?

Post by sfon »

Thank you very much for your explain
Post Reply