X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/7cea1777bdbedbc08eeeab566ba186b7c195e160..HEAD:/tools/mkwordthumb diff --git a/tools/mkwordthumb b/tools/mkwordthumb index 2404324..d79a002 100755 --- a/tools/mkwordthumb +++ b/tools/mkwordthumb @@ -6,7 +6,7 @@ use Shiar_Sheet::ImagePrep; use Shiar_Sheet::DB; use JSON (); -our $VERSION = '1.00'; +our $VERSION = '1.01'; my $db = Shiar_Sheet::DB->connect; my %filter = @ARGV ? (id => shift) : (); @@ -17,6 +17,6 @@ while (my $row = $query->hash) { eval { my $meta = eval { JSON->new->decode($row->{image} // '{}') } or die ["Invalid JSON metadata in image column.", $@]; - $image->convert("data/word/en/$row->{id}.jpg", $meta->{convert}); + $image->generate("data/word/32/$row->{id}.jpg", $meta->{convert}); } or warn "$row->{id}: @{$@}"; }