• I am a plugin developer and i used to use

    ewww_image_optimizer($file, 4, false, false, false )

    I added this code many years ago, and it still works!.
    I am currently reviewing code and have 2 questions:

    1 – is this still a good function to optimize an image (jpg) file, or are there maybe better aternatives?
    2 – where can i find the documentation of this – or an alternative – function?

Viewing 1 replies (of 1 total)
  • Plugin Author Shane Bishop

    (@nosilver4u)

    Hi Jacob,
    That is still valid code as you found, and pretty close to the “best practice” at this point. At this point, however, I’ve made all the additional parameters optional, so you can now just call it like so:
    ewww_image_optimizer( $file );

    While the underlying code might change in the future, I’ve committed to making sure that function always works.

Viewing 1 replies (of 1 total)

The topic ‘Documentation’ is closed to new replies.