Title: local image optimization
Last modified: February 11, 2021

---

# local image optimization

 *  Resolved [Steve Puddick](https://wordpress.org/support/users/stevepuddick/)
 * (@stevepuddick)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/local-image-optimization/)
 * 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](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/local-image-optimization/#post-14037650)
 * 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](https://wordpress.org/support/users/stevepuddick/)
 * (@stevepuddick)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/local-image-optimization/#post-14037842)
 * Thanks for the quick response. Here is the debug info:
 * [https://pastebin.com/f3f6uRRg](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](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/local-image-optimization/#post-14037857)
 * 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](https://docs.ewww.io/article/29-what-is-exec-and-why-do-i-need-it)
 *  Thread Starter [Steve Puddick](https://wordpress.org/support/users/stevepuddick/)
 * (@stevepuddick)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/local-image-optimization/#post-14037993)
 * 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.

 * ![](https://ps.w.org/ewww-image-optimizer/assets/icon-256x256.png?rev=1582276)
 * [EWWW Image Optimizer](https://wordpress.org/plugins/ewww-image-optimizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ewww-image-optimizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ewww-image-optimizer/)
 * [Active Topics](https://wordpress.org/support/plugin/ewww-image-optimizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ewww-image-optimizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ewww-image-optimizer/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Steve Puddick](https://wordpress.org/support/users/stevepuddick/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/local-image-optimization/#post-14037993)
 * Status: resolved