• Resolved Steve Puddick

    (@stevepuddick)


    Hi,

    Thanks for this plugin! Very useful. I have a question about the optimization level settings on the ?page=ewww-image-optimizer-options&enable-local=1 page. It seems an API key is needed for all optimizations other than JPEG, even if the functionality is available locally on the server? For example Jpegtran, Optipng, Gifsicle are all available locally on my server but I don’t seem to have access to those local corresponding optimization settings. Is there a way to utilize these local optimization settings for other file types without an API key? Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author nosilver4u

    (@nosilver4u)

    The plugin will automatically use local binaries for JPG, PNG, and GIF if they are available AND if the exec() function is not blocked in your php.ini.

    So is there a way to use those? Maybe, but depends on your server configuration. You can post your debug information from the support tab via pastebin and we’ll take a look to see what is going on there.

    Thread Starter Steve Puddick

    (@stevepuddick)

    Thanks for the quick response. Here is the debug info:

    https://pastebin.com/f3f6uRRg

    I have edited anything potentially sensitive such as IP addresses and file paths but everything else is untouched.

    Plugin Author nosilver4u

    (@nosilver4u)

    Yeah, exec() is in your disable_functions, so even JPG compression is going over the API. You’ll need to allow exec() if you want to use any local compression methods: https://docs.ewww.io/article/29-what-is-exec-and-why-do-i-need-it

    Thread Starter Steve Puddick

    (@stevepuddick)

    Ah, ok then. Well, I think we will go with your API service rather than enable exec() on our server. I would rather pay the small monthly fee than worry about the security risks of enabling exec() ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘local image optimization’ is closed to new replies.