# HG changeset patch # User Matti Hamalainen # Date 1564289454 -10800 # Node ID 13cff35dfbec0dfe8160e853285807d3ff5e3de6 # Parent cad9e459e12fe91320fda5920eef09c4eca7934e Change default thumbnail/medium formats from JPEG to WEBP. diff -r cad9e459e12f -r 13cff35dfbec mgallery.inc.php --- a/mgallery.inc.php Tue May 21 14:01:07 2019 +0300 +++ b/mgallery.inc.php Sun Jul 28 07:50:54 2019 +0300 @@ -87,12 +87,12 @@ "tn_path" => [MG_STR, "tn/"], "med_path" => [MG_STR, "med/"], - "tn_format" => [MG_STR, "jpeg"], + "tn_format" => [MG_STR, "webp"], "tn_width" => [MG_INT, 140], // In pixels, applies as bounding box for w/h "tn_height" => [MG_INT, 100], - "tn_quality" => [MG_INT, 85], // JPEG/WEBP quality percent + "tn_quality" => [MG_INT, 90], // JPEG/WEBP quality percent - "med_format" => [MG_STR, "jpeg"], + "med_format" => [MG_STR, "webp"], "med_width" => [MG_INT, 960], "med_height" => [MG_INT, 640], "med_quality" => [MG_INT, 90],