mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -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
|
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 = (
|
audio = (
|
||||||
"3gp",
|
"3gp",
|
||||||
"aac",
|
"aac",
|
||||||
|
|
|
@ -154,7 +154,7 @@ impl Collection {
|
||||||
fn is_image_file(&mut self, path: &PathBuf) -> Result<bool> {
|
fn is_image_file(&mut self, path: &PathBuf) -> Result<bool> {
|
||||||
let file_path = Path::new(&path);
|
let file_path = Path::new(&path);
|
||||||
let supported_extensions = [
|
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() {
|
if file_path.exists() {
|
||||||
|
|
Loading…
Reference in a new issue