mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
Drop non-working tiff support
https://forums.ankiweb.net/t/anki-fails-to-attach-tif-images-to-cards/47609
This commit is contained in:
parent
2c30081e3e
commit
1910b9609e
2 changed files with 2 additions and 2 deletions
|
@ -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",
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue