Command line reports error - I'm new - it stops my progress

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
MIRKOSOFT
Posts: 2
Joined: 2019-05-05T17:00:54-07:00
Authentication code: 1152

Command line reports error - I'm new - it stops my progress

Post by MIRKOSOFT »

Hello!

I'm here and in ImageMagick totally new.
As first I found ImageMagick in ShellTools as option to resize image.
I tried to use it and modified image sizes and tried to apply.

Parameters for resizing were:
-filter lanczossharp -resize "%size%>" -colorspace sRGB -quality 90

and after choosing to resize 384x272 pixels PNG image to 640x480 pixel image it reports error:
ImageMagick indicated failure by returning exit code 1.

I know that's not specified error, but cannot help.

I want to use there these parameters:
-filter boxsharp -resize "%size%>" -colorspace sRGB -quality 100
even if is possible to convert it to binary PPM or PGM.

I know that full command looks different and I can't see full entry.

But if anyone can help me, I'll be thankful and then I can continue to investigate all features of ImageMagick.

Thank you very much.
Miro
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Command line reports error - I'm new - it stops my progress

Post by fmw42 »

Always best to provide your IM version and platform. Also I would recommend testing directly in a CMD window. It is possible that your error is in your ShellTools code. Sorry, I am not a Windows user and so cannot help. Your command looks fine, except I do not know how variables are specified in ShellTools. Does it work, if you hard code a numerical values in place of your size variable?
MIRKOSOFT
Posts: 2
Joined: 2019-05-05T17:00:54-07:00
Authentication code: 1152

Re: Command line reports error - I'm new - it stops my progress

Post by MIRKOSOFT »

I try it later, now it's here early morning, yet bit of night.

My IM version is 7.0.8.42 Q16 64-bit and Windows 10.1809 Pro 64-bit.
I forget it to posting here 'cause I forgot that command line is on each platform another.
Even, maybe you're right that ShellTools can have wrong code.
But only by ShellTools I found what is IM and its possibilities and even what it gives programmer.
I'm programing in Visual Basic and learning C and Python.

Miro
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Command line reports error - I'm new - it stops my progress

Post by snibgo »

I know nothing about ShellTools.

I suggest you start simple, with no variables like "%size%" or special characters like ">".
snibgo's IM pages: im.snibgo.com
Post Reply