commit e6f73b503ef71f871bdf5c6aa16000028457b0bf parent 958ac35a80ffd8978d619c0bf02df84d1bd81cfe Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Sun, 4 Nov 2018 22:50:59 +0100 Decrease total size by using global JPG quality and a max size of 1000x1000 Diffstat:
7 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/config.toml b/config.toml @@ -41,7 +41,7 @@ defaultContentLanguage = "en" resampleFilter = "Lanczos" # Defatult JPEG quality setting. Default is 75. -quality = 90 +quality = 75 # Anchor used when cropping pictures. # Default is "smart" which does Smart Cropping, using https://github.com/muesli/smartcrop diff --git a/content/about/_index.da.md b/content/about/_index.da.md @@ -14,4 +14,4 @@ I min professionelle tilværelse forsker jeg i klima, granulære materialer, og gletschere. Besøg min [akademiske hjemmeside](https://adamsgaard.dk) for mere information herom. -{{< imgproc "anders_damsgaard_portrait.png" Resize "x1000" >}} +{{< imgproc "anders_damsgaard_portrait.jpg" Fit "1000x1000" >}} diff --git a/content/about/_index.md b/content/about/_index.md @@ -14,4 +14,4 @@ In my other life I am a scientist interested in climate, granular materials, and glaciers. For more information, please see my [academic webpage](https://adamsgaard.dk). -{{< imgproc "anders_damsgaard_portrait.png" Resize "x1000" >}} +{{< imgproc "anders_damsgaard_portrait.jpg" Fit "1000x1000" >}} diff --git a/content/about/anders_damsgaard_portrait.jpg b/content/about/anders_damsgaard_portrait.jpg Binary files differ. diff --git a/content/about/anders_damsgaard_portrait.png b/content/about/anders_damsgaard_portrait.png Binary files differ. diff --git a/themes/tale-mod/layouts/_default/single.da.html b/themes/tale-mod/layouts/_default/single.da.html @@ -23,8 +23,7 @@ {{ $scratch.Set "counter" 0 }} {{ range . }} - {{/* $scratch.Set "image" (.Resize "1200x q90") */}} - {{ $scratch.Set "image" (.Fit "1200x1200 q90") }} + {{ $scratch.Set "image" (.Fit "1000x1000") }} {{ $image := $scratch.Get "image" }} {{/* $image.Sharpen 0.5 */}} <figure style="padding: 0.0rem; margin: 2rem 0; diff --git a/themes/tale-mod/layouts/_default/single.html b/themes/tale-mod/layouts/_default/single.html @@ -23,8 +23,7 @@ {{ $scratch.Set "counter" 0 }} {{ range . }} - {{/* $scratch.Set "image" (.Resize "1200x q90") */}} - {{ $scratch.Set "image" (.Fit "1200x1200 q90") }} + {{ $scratch.Set "image" (.Fit "1000x1000") }} {{ $image := $scratch.Get "image" }} {{/* $image.Sharpen 0.5 */}} <figure style="padding: 0.0rem; margin: 2rem 0;