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
+2
View File
@@ -36,6 +36,8 @@ exports.startup = function() {
var method = "toPng";
switch(params.format) {
case "jpeg":
// Intentional fallthrough
case "jpg":
method = "toJpeg";
break;
case "svg":