snibgo wrote: ↑2017-03-30T10:40:24-07:00
I've never known convert to return 1 when it shouldn't. So perhaps your listener code may have a bug.
I suppose you have printed the value of the string when it returns 1. Then you can run that exact command from the command line, and see what it returns.
Okay so now we're getting somewhere, yes I now tossed in the exception and I am seeing errors...
This is my exception:
Failed to run with : 'convert "C:\Users\my user\a.png" -depth 8 -resize 128 -sharpen 0x1.5 "C:\Users\my user\a_128.png"'
When I input that into command:
Code: Select all
convert.exe: unable to open image `C:/Users/my user/Downloads/a.png': No such file or directory @ error/blob.c/OpenBlob/2643.
convert.exe: unable to open file `C:/Users/my user/Downloads/a.png' @ error/png.c/ReadPNGImage/3994.
convert.exe: no images defined `C:/Users/my user/Downloads/a_128.png' @ error/convert.c/ConvertImageCommand/3108.
I don't know how it can both convert and open images while being unable to open all the images...
I already did try switching up my escape characters with forward and backwards slashes, mixed my quotations with single and double, any advice would help me out.
fmw42 wrote: ↑2017-03-30T10:53:37-07:00
Perhaps the return 1 is not coming from Imagemagick, but from somewhere else in your code.
If you run the same command with variables resolve to their actual value from the command line, does that return 1 or 0?
Yes I tried this already, from what I am putting into my .net code but now I am trying to call the exact line that I am outputting above ^.