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:
parent
26ab5c5137
commit
c1d03ac607
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user