error Reporting shell_exec

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
Darknet
Posts: 18
Joined: 2014-01-15T10:52:19-07:00
Authentication code: 6789

error Reporting shell_exec

Post by Darknet »

Code: Select all

private function convert_width($size,$pic,$input,$output)
	{
		$pfadinput = $input."/".$pic;
		$pfadoutput = $output."/".$pic;
		print_r("/usr/bin/convert -resize '.$size.' -quality 100%  '.$pfadinput.' '.$pfadoutput");
		
		var_dump(shell_exec("/usr/bin/convert -resize '.$size.'-quality 100% '.$pfadinput.' '.$pfadoutput"));  
	}
Who can I ceck if the imagemagick command work correct?
These example doen't work
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: error Reporting shell_exec

Post by fmw42 »

How do you know they do not work. Try running the command line with explicit values in a terminal. Also your syntax is not fully correct, though it may not matter. Put the input image right after convert and before the resize.
Darknet
Posts: 18
Joined: 2014-01-15T10:52:19-07:00
Authentication code: 6789

Re: error Reporting shell_exec

Post by Darknet »

IT works Thank You
Post Reply