Closed lesaff closed 7 years ago
This has actually nothing to do with AutoSmush. Error is thrown because OptimizerFactory can't find executable. I would check safe mode directive in php.ini. When safe mode is enabled, you can only execute files within the safe_mode_exec_dir. For practical reasons, it is currently not allowed to have .. components in the path to the executable. Also, user running your webserver (apache?) must have access to the executable.
Also check my answer here: https://processwire.com/talk/topic/14818-auto-smush/?do=findComment&comment=133382
That works! I am on MacOS and installed all the local optimization tools via brew
, so most likely they all will be stored in /usr/local/bin
For other people watching this thread, use
which jpegoptim
to find the correct path in *nix systems
Great! Would you mind adding more information about changing the path on MacOS? Or did you just copied the files to the "right" location?
I am getting
Command "jpegoptim" not found
error when I uploaded an image even though I havejpegoptim
installed.Update: same goes to
pngquant
when uploading PNG file