original cloudinary url was “https://res.cloudinary.com/duqld0nat/image/upload/v1542661562/IMG_4337.webp”
So, adding the f_auto here did NOT make webP fallback to jpg for Firefox: “https://res.cloudinary.com/duqld0nat/image/upload/f_auto/v1542661562/IMG_4337.webp”
<?php echo cl_image_tag("sample.jpg", array("width" => 300, "crop" => "scale", "fetch_format" => "auto")); ?>
LEFT OFF AT…
how to alter the URL to dynamically serve the WebP version to Chrome, but fallback to the jpg for other browsers like Firefox?
THIS EXAMPLE WORKS
but our images don’t seem to work:
HOW TO TELL IF IT’S WEBP FORMAT?
you have to examine the content-type