1
1
mirror of https://github.com/exyte/Macaw.git synced 2024-09-11 13:15:35 +03:00

add "image/jpeg" for decodable format

This commit is contained in:
Daniil Manin 2019-05-31 14:15:51 +07:00
parent 26ab5c5137
commit c1d03ac607

View File

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