mirror of
https://github.com/exyte/Macaw.git
synced 2024-09-11 13:15:35 +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
|
// 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 {
|
for format in decodableFormat {
|
||||||
let prefix = "data:\(format);base64,"
|
let prefix = "data:\(format);base64,"
|
||||||
if src.hasPrefix(prefix) {
|
if src.hasPrefix(prefix) {
|
||||||
|
Loading…
Reference in New Issue
Block a user