Cakephp pdf图像转换问题

时间:2013-07-17 08:20:17

标签: cakephp

如何把这个:

 WWW_ROOT."images".DS."uploaded_files".DS."research".DS. $pdfname;

在这个

里面
  exec("convert -scale  1500x1000 " . escapeshellarg(BASE_URL."app/webroot/images/uploaded_files/research/${dirname}/img%d_".$pdfname.".png"));

替换 BASE_URL。“app / webroot / images / uploaded_files / research / $ {dirname} /

1 个答案:

答案 0 :(得分:0)

这有什么问题:

$path = WWW_ROOT."images".DS."uploaded_files".DS."research".DS. $pdfname.".png";
exec("convert -scale  1500x1000 " . escapeshellarg($path));

你试过吗?