Function getBase64ImageHeader
- getBase64ImageHeader(str):
| "data:image/gif;base64,"
| "data:image/jpeg;base64,"
| "data:image/jpg;base64,"
| "data:image/png;base64,"
| "data:image/svg+xml;base64,"
| "data:image/webp;base64," Parameters
- str:
| `data:image/gif;base64,${string}`
| `data:image/jpeg;base64,${string}`
| `data:image/jpg;base64,${string}`
| `data:image/png;base64,${string}`
| `data:image/svg+xml;base64,${string}`
| `data:image/webp;base64,${string}`
Returns
| "data:image/gif;base64,"
| "data:image/jpeg;base64,"
| "data:image/jpg;base64,"
| "data:image/png;base64,"
| "data:image/svg+xml;base64,"
| "data:image/webp;base64,"
get the header of a base64 image
Example