WebP destination folder

WordPress supports media files with the exact default directory.
All the folders are inside our WordPress upload directory.

  1. URL needs an option as the WebP files won’t be listed in our Media Library.
    Which destination folder should be respected:
$destinationDir = '/path/to/result/dir/'; // Set your desired output directory

JPG and PNG files will be kept and stored in the same physical location (folder), and files using the format WebP should be rewritten inside WordPress to be viewed as the current theme can not automatically rewrite paths.

  1. Will be a better result inside Website Speed Test as old files will be seen by speed test tool? These options will provide fallback support, so if a visitor is using a browser that doesn’t support WebP images, the optimized JPG or PNG versions will be served instead.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.