Title: Image Optimisation options
Last modified: November 29, 2021

---

# Image Optimisation options

 *  [zimbo000](https://wordpress.org/support/users/zimbo000/)
 * (@zimbo000)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/image-optimisation-options/)
 * I have the plugin installed on two sites, a live one and testing (dev) site.
 * On the live site, the text on the Images tab is for 2 options only:
 *     ```
       Make your site significantly faster by just ticking a couple of checkboxes to optimize and lazy load your images, WebP and AVIF support included!
   
       Optimise Images	...(more text)
   
       Lazy load images?	Image lazy loading will delay the loading of non-visible images to allow the browser to optimally load all resources for the "above the fold" page first.
       ```
   
 * On the dev site Images tab however there are 3 more options before the Lazy load
   image? option:
 *     ```
       Optimization exclusions	
   
       Image Optimisation quality	
   
       Load AVIF in supported browsers?
       ```
   
 * I’m not using the Image Optimisation via the plugin, but am curious as to why
   they are showing differently?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fimage-optimisation-options%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/image-optimisation-options/#post-15114685)
 * The 3 extra options _should_ only be visible if “optimize images” is active, 
   so this looks like a (small) bug which I can’t reproduce ..
 * frank
 *  Thread Starter [zimbo000](https://wordpress.org/support/users/zimbo000/)
 * (@zimbo000)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/image-optimisation-options/#post-15114777)
 * [https://imgur.com/a/H0BOs93](https://imgur.com/a/H0BOs93)
 * Anything I can do to help you investigate?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/image-optimisation-options/#post-15114817)
 * Well, can you get me the value of option `autoptimize_imgopt_settings` (serialized
   array) + the HTML source of those unintentionally visible elements (in a pastebin
   past or a github gist) ?
 *  Thread Starter [zimbo000](https://wordpress.org/support/users/zimbo000/)
 * (@zimbo000)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/image-optimisation-options/#post-15115286)
 * [https://pastebin.com/cX8gbGmn](https://pastebin.com/cX8gbGmn) – this is the 
   whole of the <form> code.
 * Where do I find the value of that option?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/image-optimisation-options/#post-15115299)
 * you’ll need some PHP to get that I’m afraid, something like
 * `echo json_encode( get_option( 'autoptimize_imgopt_settings' ) );`
 *  Thread Starter [zimbo000](https://wordpress.org/support/users/zimbo000/)
 * (@zimbo000)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/image-optimisation-options/#post-15118007)
 * I inserted that line into autoptimizeImages.php at line 1102, refreshed the page
   and got this via View Source. Is this what you wanted?
 * {“autoptimize_imgopt_checkbox_field_1″:null,”autoptimize_imgopt_select_field_2″:”
   2″,”autoptimize_imgopt_checkbox_field_3″:”0″,”autoptimize_imgopt_checkbox_field_4″:”
   0″,”autoptimize_imgopt_text_field_5″:””}
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/image-optimisation-options/#post-15122895)
 * OK, so what happens if you enable image optimization, save changes and then disable
   it again and saving changes?
 *  Thread Starter [zimbo000](https://wordpress.org/support/users/zimbo000/)
 * (@zimbo000)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/image-optimisation-options/#post-15123026)
 * The 3 extra options disappear as if by magic… 🙂
 * As soon as I disabled it, the “3” went away on screen. I then of course saved
   the change. I mention this because I don’t know whether the instantaneous ‘disappearance’
   after I unticked the Optimise Images box is relevant/pertinent.
 * To be clear, I have never enabled this option on the test site. Like many plugin
   authors you provide additional functionality over what _I_ might consider the‘
   core’ reason I installed the plugin, some of which folks like me don’t get around
   to looking at until some time after first install. It was whilst seeing what 
   else the plugin might offer me that I noticed the difference in appearance on
   this test site to the live site. Hence I thought it worth mentioning.
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/image-optimisation-options/#post-15123077)
 * Although still a mystery on why/ how the options appeared in the first place,
   I’m happy that toggling the option on/off ‘fixed’ things.
 * Just so we’re able to compare, when you re-execute the earlier code snippet (
   also below) now, what results do you see?
 *     ```
       echo json_encode( get_option( 'autoptimize_imgopt_settings' ) );
       ```
   
 *  Thread Starter [zimbo000](https://wordpress.org/support/users/zimbo000/)
 * (@zimbo000)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/image-optimisation-options/#post-15125221)
 * {“autoptimize_imgopt_select_field_2″:”2″,”autoptimize_imgopt_text_field_5″:””}

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Image Optimisation options’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [zimbo000](https://wordpress.org/support/users/zimbo000/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/image-optimisation-options/#post-15125221)
 * Status: not resolved