tDecrease total size by using global JPG quality and a max size of 1000x1000 - andersdamsgaard.com - my photography webpage
(HTM) git clone git://src.adamsgaard.dk/andersdamsgaard.com
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
(DIR) commit e6f73b503ef71f871bdf5c6aa16000028457b0bf
(DIR) parent 958ac35a80ffd8978d619c0bf02df84d1bd81cfe
(HTM) 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:
M config.toml | 2 +-
M content/about/_index.da.md | 2 +-
M content/about/_index.md | 2 +-
A content/about/anders_damsgaard_por… | 0
D content/about/anders_damsgaard_por… | 0
M themes/tale-mod/layouts/_default/s… | 3 +--
M themes/tale-mod/layouts/_default/s… | 3 +--
7 files changed, 5 insertions(+), 7 deletions(-)
---
(DIR) diff --git a/config.toml b/config.toml
t@@ -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
(DIR) diff --git a/content/about/_index.da.md b/content/about/_index.da.md
t@@ -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" >}}
(DIR) diff --git a/content/about/_index.md b/content/about/_index.md
t@@ -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" >}}
(DIR) diff --git a/content/about/anders_damsgaard_portrait.jpg b/content/about/anders_damsgaard_portrait.jpg
Binary files differ.
(DIR) diff --git a/content/about/anders_damsgaard_portrait.png b/content/about/anders_damsgaard_portrait.png
Binary files differ.
(DIR) diff --git a/themes/tale-mod/layouts/_default/single.da.html b/themes/tale-mod/layouts/_default/single.da.html
t@@ -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;
(DIR) diff --git a/themes/tale-mod/layouts/_default/single.html b/themes/tale-mod/layouts/_default/single.html
t@@ -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;