mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
adding image support for gif and webp (#11237)
Adds image support for gif and webp images. Tested using webp and gif (both single and multi image gif files)
This commit is contained in:
@@ -1540,7 +1540,11 @@ impl ChatComposer {
|
||||
|
||||
fn is_image_path(path: &str) -> bool {
|
||||
let lower = path.to_ascii_lowercase();
|
||||
lower.ends_with(".png") || lower.ends_with(".jpg") || lower.ends_with(".jpeg")
|
||||
lower.ends_with(".png")
|
||||
|| lower.ends_with(".jpg")
|
||||
|| lower.ends_with(".jpeg")
|
||||
|| lower.ends_with(".gif")
|
||||
|| lower.ends_with(".webp")
|
||||
}
|
||||
|
||||
fn trim_text_elements(
|
||||
|
||||
Reference in New Issue
Block a user