Add webp image support
Kingfisher already supports this... wtf we doing Changelog-Added: Add webp image support
This commit is contained in:
@@ -380,7 +380,7 @@ func render_blocks(blocks: [Block], profiles: Profiles, privkey: String?) -> Not
|
|||||||
|
|
||||||
func is_image_url(_ url: URL) -> Bool {
|
func is_image_url(_ url: URL) -> Bool {
|
||||||
let str = url.lastPathComponent.lowercased()
|
let str = url.lastPathComponent.lowercased()
|
||||||
let isUrl = str.hasSuffix(".png") || str.hasSuffix(".jpg") || str.hasSuffix(".jpeg") || str.hasSuffix(".gif")
|
let isUrl = str.hasSuffix(".png") || str.hasSuffix(".jpg") || str.hasSuffix(".jpeg") || str.hasSuffix(".gif") || str.hasSuffix(".webp")
|
||||||
return isUrl
|
return isUrl
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user