1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-24 16:06:58 +00:00

Allow format="jpg" as well as the more technically correct "jpeg"

This commit is contained in:
Jeremy Ruston 2024-12-10 12:48:04 +00:00
parent 4eed4cbaa5
commit 925d3b0b4c

View File

@ -36,6 +36,8 @@ exports.startup = function() {
var method = "toPng"; var method = "toPng";
switch(params.format) { switch(params.format) {
case "jpeg": case "jpeg":
// Intentional fallthrough
case "jpg":
method = "toJpeg"; method = "toJpeg";
break; break;
case "svg": case "svg":