Page 1 of 1

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

Posted: 2019-05-05T17:14:52-07:00
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

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

Posted: 2019-05-05T17:31:28-07:00
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?

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

Posted: 2019-05-05T18:37:41-07:00
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

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

Posted: 2019-05-06T03:13:55-07:00
by snibgo
I know nothing about ShellTools.

I suggest you start simple, with no variables like "%size%" or special characters like ">".