Skip to navigation
Falcon python check if the client agent browser is safari
31.03.20
as webp is not supported by apple safari, i have to check the agent client if req.user_agent.find('Safari') > -1: c.save(o, format='PNG',dpi=(300,300)) else: c.save(o, format='WEBP',dpi=(300,300)) https://falcon.readthedocs.io/en/stable/api/request_and_response.html
https://caniuse.com/webp
Reply
Anonymous
Information Epoch 1732604474
Think hierarchically.
Home
Notebook
Contact us