Giter Club home page Giter Club logo

Comments (5)

a3020 avatar a3020 commented on May 23, 2024 1

I'm not familiar with MAMP, but try StackOverflow, e.g. https://stackoverflow.com/questions/40767857/change-path-environment-variable-in-mamp

from image-optimizer.

a3020 avatar a3020 commented on May 23, 2024

Update: I extracted the proc_open call to a test script. It works OK via CLI, but not via a browser. I then changed the command to /usr/local/bin/jpegoptim which made it work in both occasions. It's probably a path issue.

from image-optimizer.

a3020 avatar a3020 commented on May 23, 2024

Fixed it by editing /Library/LaunchDaemons/homebrew.mxcl.httpd24.plist and adding:

<key>EnvironmentVariables</key>
<dict>
   <key>PATH</key>
   <string>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
</dict>

from image-optimizer.

MaximVanhove avatar MaximVanhove commented on May 23, 2024

@a3020 I'm having the same issue, also using MAMP. I do not have the file homebrew.mxcl.httpd24.plist nor the folder LaunchDaemons. Any suggestions?

from image-optimizer.

MaximVanhove avatar MaximVanhove commented on May 23, 2024

That did the trick!

from image-optimizer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.