Hello.
It seems to do everything right:
1. Download: ImageMagick-7.0.2-4-Q16-x86-dll.exe under windows.
2. Prescribed the path to a variable surrounded by PATH.
3. In the php.ini extension=php_imagick.dll
I prescribe the command: system("convert img/inp.png img/out.gif");
nothing.
How can I solve this problem?
|
1 answer
include error messages or
$ php -r 'system("convert img/inp.png img/out.gif");'; convert: unable to open image `img/inp.png': No such file or directory @ error/blob.c/OpenBlob/2712. convert: unable to open file `img/inp.png' @ error/png.c/ReadPNGImage/3922. convert: no images defined `img/out.gif' @ error/convert.c/ConvertImageCommand/3210.
"nothing" can not be, or the result or error message. if there is no error message, it means they are turned off.
You may have forgotten to restart the web server, and it did not catch the changes.
If the system does not produce anything, in theory everything is fine. check that the new file has not been created. then try using your hands to convert
and yes, why do you use the system for imagick? what nonsense? http://php.net/manual/ru/book.imagick.php
$ php -r 'system("convert img/inp.png img/out.gif");';
Your code in the editor is highlighted in red, there is an error in the code. - Max- "$" is not an internal or external command, executable program, or batch file. - Max
- then you need to specify the full path to php (and at the same time include the directory to it in the PATH) in order not to butt with it in the future. Lord, you can't figure it out with your console, but you’re going to the web-maidens, why? - strangeqargo
- I need from the php file: execute the
system("convert img/inp.png img/out.gif");
commandsystem("convert img/inp.png img/out.gif");
- Max echo system(аргументы)
will give the result of the command. reboot (restart) a computer or restart a web server so that it sees that imagick has been added to the path - strangeqargo
|