comparison mgallery.inc.php @ 289:13cff35dfbec

Change default thumbnail/medium formats from JPEG to WEBP.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 28 Jul 2019 07:50:54 +0300
parents 25324e33fc78
children 19fbf800b1f7
comparison
equal deleted inserted replaced
288:cad9e459e12f 289:13cff35dfbec
85 "album_flags" => [MG_FLAGS, MGF_JAVASCRIPT | MGF_BREADCRUMBS, &$mgGFlags], 85 "album_flags" => [MG_FLAGS, MGF_JAVASCRIPT | MGF_BREADCRUMBS, &$mgGFlags],
86 86
87 "tn_path" => [MG_STR, "tn/"], 87 "tn_path" => [MG_STR, "tn/"],
88 "med_path" => [MG_STR, "med/"], 88 "med_path" => [MG_STR, "med/"],
89 89
90 "tn_format" => [MG_STR, "jpeg"], 90 "tn_format" => [MG_STR, "webp"],
91 "tn_width" => [MG_INT, 140], // In pixels, applies as bounding box for w/h 91 "tn_width" => [MG_INT, 140], // In pixels, applies as bounding box for w/h
92 "tn_height" => [MG_INT, 100], 92 "tn_height" => [MG_INT, 100],
93 "tn_quality" => [MG_INT, 85], // JPEG/WEBP quality percent 93 "tn_quality" => [MG_INT, 90], // JPEG/WEBP quality percent
94 94
95 "med_format" => [MG_STR, "jpeg"], 95 "med_format" => [MG_STR, "webp"],
96 "med_width" => [MG_INT, 960], 96 "med_width" => [MG_INT, 960],
97 "med_height" => [MG_INT, 640], 97 "med_height" => [MG_INT, 640],
98 "med_quality" => [MG_INT, 90], 98 "med_quality" => [MG_INT, 90],
99 99
100 ]; 100 ];