1
1
mirror of https://github.com/exyte/Macaw.git synced 2024-08-16 00:20:23 +03:00

Add image/jpeg to decodable formats

This commit is contained in:
Markus Mattsson 2022-01-26 12:02:06 +01:00 committed by GitHub
parent d508348111
commit 014db84a56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,7 +150,7 @@ open class Image: Node {
}
// Base64 image
let decodableFormat = ["image/png", "image/jpg", "image/svg+xml"]
let decodableFormat = ["image/png", "image/jpeg", "image/jpg", "image/svg+xml"]
for format in decodableFormat {
let prefix = "data:\(format);base64,"
if src.hasPrefix(prefix) {