Comments (1)
Hello,
it may cause issues if you run it as root on other directories than wp-content/uploads.
There are two ways to fix the issue :
- delete all .webp files created in theme directory :
find ./path/to/divi -type f -name '*.webp' -exec rm '{}' \;
- set proper webp files owner and permissions
chown -R www-data:www-data /path/to/divi
find ./path/to/divi -type d -exec chmod 755 {} \;
find ./path/to/divi -type f -exec chmod 644 {} \;
Then the easiest to avoid this issue in the futur :
- do not run img-optimize in other folder than uploads
or - run img-optimize as www-data to avoid permissions issues
from img-optimize.
Related Issues (12)
- .jpeg files are not optimized
- Don't run twice on same directory HOT 1
- Progressive JPEG HOT 1
- Av1f convertor? HOT 2
- Avoid double optimization HOT 1
- add --force option
- Lossless / quality option HOT 2
- Prevent empty find result HOT 1
- Provide a ctime argument
- Set less verbose script called HOT 2
- Webp conversion doesn't work HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from img-optimize.