• zimbo000

    (@zimbo000)


    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 to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    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

    (@zimbo000)

    https://imgur.com/a/H0BOs93

    Anything I can do to help you investigate?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    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

    (@zimbo000)

    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

    (@optimizingmatters)

    you’ll need some PHP to get that I’m afraid, something like

    echo json_encode( get_option( 'autoptimize_imgopt_settings' ) );

    Thread Starter zimbo000

    (@zimbo000)

    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

    (@optimizingmatters)

    OK, so what happens if you enable image optimization, save changes and then disable it again and saving changes?

    Thread Starter zimbo000

    (@zimbo000)

    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

    (@optimizingmatters)

    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

    (@zimbo000)

    {“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.