Drop non-working tiff support

https://forums.ankiweb.net/t/anki-fails-to-attach-tif-images-to-cards/47609
This commit is contained in:
Damien Elmes 2024-08-01 12:19:35 +07:00
parent 2c30081e3e
commit 1910b9609e
2 changed files with 2 additions and 2 deletions

View file

@ -60,7 +60,7 @@ from aqt.utils import (
)
from aqt.webview import AnkiWebView, AnkiWebViewKind
pics = ("jpg", "jpeg", "png", "tif", "tiff", "gif", "svg", "webp", "ico", "avif")
pics = ("jpg", "jpeg", "png", "gif", "svg", "webp", "ico", "avif")
audio = (
"3gp",
"aac",

View file

@ -154,7 +154,7 @@ impl Collection {
fn is_image_file(&mut self, path: &PathBuf) -> Result<bool> {
let file_path = Path::new(&path);
let supported_extensions = [
"jpg", "jpeg", "png", "tif", "tiff", "gif", "svg", "webp", "ico", "avif",
"jpg", "jpeg", "png", "gif", "svg", "webp", "ico", "avif",
];
if file_path.exists() {