I want to check if the webp image is exists on the server on smarty
. The URL
is an absolute URL
like this.
i tried
{if file_exists("https://example.com/image.webp")}
{/if}
and
{if 'https://example.com/image.webp'}
{/if}
But none is working. Can anyone tell me how to do this?