Getting errors on live server, not on dev using -Flatten and -Alpha
Posted: 2016-10-27T11:42:08-07:00
Hello,
I am trying to use the following command for making a simple thumbnail for uploads. Needs to work on PDF, JPG, GIF, and PNG...the output format is always a JPG. I'm using PHP. This code works perfect on my laptop environment but fails on live server.
The error I'm getting is: cannot create -flatten: Permission denied.
exec("/usr/bin/convert \"{$filepath}[0]\" -background white -resize {$resize} -flatten -alpha remove $thumbTemp 2>&1",$out,$return);
Any ideas??
James
I am trying to use the following command for making a simple thumbnail for uploads. Needs to work on PDF, JPG, GIF, and PNG...the output format is always a JPG. I'm using PHP. This code works perfect on my laptop environment but fails on live server.
The error I'm getting is: cannot create -flatten: Permission denied.
exec("/usr/bin/convert \"{$filepath}[0]\" -background white -resize {$resize} -flatten -alpha remove $thumbTemp 2>&1",$out,$return);
Any ideas??
James