从java app运行textcleaner时出现问题

时间:2017-10-18 22:15:12

标签: centos imagemagick centos7

我能够在服务器中从SSH执行textcleaner,但是当我尝试从Java应用程序执行相同操作时,textcleaner会出错。

我已经尝试使用chmod和chown更改权限,我甚至更改了Java应用程序以使用chmod执行。创建作为textcleaner输入的图像之后的所有这些。

服务器是Centos 7.

错误是:

/opt/textcleaner -g -e stretch "<<fulldir>>/assets/invoice/89feb0bb-9ebd-46b7-a531-ba16194473e6/Aguas-Septiembre.jpg" "<<fulldir>>/assets/invoice/89feb0bb-9ebd-46b7-a531-ba16194473e6/improved_Aguas-Septiembre.jpg"
tasklist: convert: unable to open image './textcleaner_1_7206.mpc': Permission denied @ error/blob.c/OpenBlob/3143.
tasklist:
tasklist: --- FILE /var/www/invoicebox.com/public_html/assets/invoice/89feb0bb-9ebd-46b7-a531-ba16194473e6/Aguas-Septiembre.jpg NOT READABLE OR HAS ZERO SIZE ---

0 个答案:

没有答案