How to set image path in linux command line?

2019-09-05 16:29发布

How to set image path in linux command line ?

I tried to use this image path

/home/testuser/public_html/img/test.jpg

With this code in linux command line (putty)

jpegoptim --max=75 /home/testuser/public_html/img/test.jpg

But not work, How can i do that ?

标签: linux
1条回答
倾城 Initia
2楼-- · 2019-09-05 17:16

Make sure the file exists and that it is readable. The directory should be writable too.

Try

sudo chmod 666 /home/testuser/public_html/img/test.jpg

and

sudo chmod 777 /home/testuser/public_html/img
查看更多
登录 后发表回答