mirror of
https://github.com/exyte/Macaw.git
synced 2024-10-26 13:01:25 +03:00
Add image/jpeg to decodable formats
This commit is contained in:
parent
d508348111
commit
014db84a56
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user