ctucx.git: gallery

static-site-generator for image-galleries [used @ photos.ctu.cx]

commit b6f29916d2b15c5af6460ae5327a4bc83c79fbfb
parent ac46ef1cd764f0b523ed9b5c38a42b1680dd23e1
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sat, 13 Mar 2021 18:38:47 +0100

gallery.nim: fix wrong variable-name
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallery.nim b/src/gallery.nim
@@ -288,7 +288,7 @@ proc generateWebsite(targetDir: string, album: Album) =
             mediumThumbnails.add(["/usr/bin/env mogrify",
                 "-strip",
                 "-interlace", "plane",
-                "-format", $picture.format,
+                "-format", $picture.filetype,
                 "-path", quoteShell(joinPath(targetDir, "thumbnails/medium")),
                 "-resize", $config.thumbMediumWidth & "x\\>",
                 quoteShell(joinPath(picture.path, picture.filename))