From 903548005c2141b9c67f80412a20522c163c5fb9 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Sun, 12 May 2024 18:12:20 +0200 Subject: Merge SVG support from mobilized Dillo fork Uses the nanosvg library to add SVG support. See: https://www.toomanyatoms.com/software/mobilized_dillo.html Authored-By: dogma --- dpi/file.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dpi/file.c') diff --git a/dpi/file.c b/dpi/file.c index d84f4b64..df0b4933 100644 --- a/dpi/file.c +++ b/dpi/file.c @@ -510,6 +510,8 @@ static const char *File_ext(const char *filename) return "image/jpeg"; } else if (!dStrAsciiCasecmp(e, "png")) { return "image/png"; + } else if (!dStrAsciiCasecmp(e, "svg")) { + return "image/svg+xml"; } else if (!dStrAsciiCasecmp(e, "html") || !dStrAsciiCasecmp(e, "xhtml") || !dStrAsciiCasecmp(e, "htm") || -- cgit v1.2.3