How to save panel object to png without file extension (when using BytesIO)

I’ve created a feature request to make this easier. See Enable saving to BytesIO png. · Issue #3005 · holoviz/panel (github.com)