简体   繁体   中英

Jpegoptim caused images to disappear

I finally figured out how to get jpegoptim properly installed on my Centos 6 system and ran the command on a larger folder of images like this

jpegoptim *.jpg --strip-all

Now none of the images appear on my website! They are still in the folder and considerably compressed, but they don't appear to be accessible. I am assuming this must be a permissions issue? Has anybody experienced this?

Okay, I figured this out. For some reason, jpegoptim changes the permissions on the file when you run it. After changing the permissions to 755 (-rwxr-xr-x) using the command chmod -R 755 [containing_folder] the images are now visible again.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM