I try to convert a rgb color to transparent
When i use this code in the command line, it works perfect.
convert -transparent 'RGB(249,249,255)' /home/me/web/my.png /home/me/web/mynew.png
But when i use it with php:
<?php
error_reporting(E_ALL);
ini_set('display_errors', '1');
$output = shell_exec("convert -transparent 'RGB(249,249,255)' /home/me/web/my.png /home/me/web/mynew.png");
?>
i get the error:
convert: unable to open image `/home/me/web/mynew.png': @ error/blob.c/OpenBlob/2498.
Has anyone a idea?