Command line problem agian running bat file/imagemagick

  • Автор темы Автор темы Harambulus
  • Дата начала Дата начала

Harambulus

Client
Регистрация
16.09.2011
Сообщения
365
Реакции
10
Баллы
18
Код:
Развернуть Свернуть Копировать
convert 1.jpg -gravity South  -chop  0x25  2.jpg

Above works when I run the bat file by double clicking manually or when I type in command prompt but it gives an error when I try and run via zenno.

Same thing happened when I used ffmpeg once but when I typed in the full path to ffmpeg ie F:\ffmpeg\ffmpeg.exe etc etc then it worked.

So I thought to try that in this case using F:\magic\convert.exe but it still didn't work.

Any ideas?

The error code is eitehr result 1 or result 4 in the log whatever that means depedning on the two things I changed above, ie no path and just command in bat file or full path.

There are error messages in the command but it clsoes immediately so i cant read. How do i amke it stay open? I set the action to show for many seconds but makes no difference when i put in the wait in the options it still closes immediately.

Edit it says its not accesing the imagemagick modules.
 
Последнее редактирование:
Works with the following properties:
Img_convert.png

or with the following code in bat file:
Код:
Развернуть Свернуть Копировать
CD C:\Program Files\ImageMagick-6.9.1-Q16\
convert C:\Users\SUPPORT\1.jpg -gravity South  -chop  0x25 C:\Users\SUPPORT\2.jpg
 
Последнее редактирование:
  • Спасибо
Реакции: Harambulus
Thanks. I didnt need it as I did the task in the command line using only imagemagick but i may need for future.
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)