#!/usr/bin/env raku use v6.d; use lib 'lib'; use Katana::Exec::Command; use Katana::HTML::Page; use Katana::HTML::Tag; use Katana::Image::Elem; use Katana::Walk::Dir; sub camera-stats(@images) { my %cameras; %cameras{.camera}++ for @images; return %cameras.sort(*.value).reverse; } multi MAIN( Bool :$mr-proper, #= Clean output dir Str :$in-dir = './in', #= Input dir Str :$dist-dir = './dist', #= Output dir Int :$thumb-geometry = 800, #= Thumbnail geometry Str :$bg-blur = '0x8', #= Background blur factor Bool :$randomize = True, #= Randomize order of images Str :$title = 'Katana album', #= Album title Int :$degree = 4, #= Degree of parallelism ) { my @body-tags = (Tag.new: :name