From faa2d4b8c4c785010cebeed32b61cb46b69004c0 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Sat, 23 Jan 2021 12:29:39 +0100 Subject: [PATCH] put all small images down to bottom (south) --- csv2js.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csv2js.pl b/csv2js.pl index a1fa2d3..cdba38b 100755 --- a/csv2js.pl +++ b/csv2js.pl @@ -31,7 +31,7 @@ foreach my $i ( @$aoh ) { #system "convert -trim -geometry 400x $source $image"; system qq{convert -fill white -draw "color 1,1 floodfill" -trim -geometry 400x $source $image}; #system "convert $image -scale 100x100 -gravity center -background white -extent 100x100 $thumb"; - system qq{convert $source -fill white -draw "color 1,1 floodfill" -scale 100x100 -gravity center -background white -extent 100x100 $thumb}; + system qq{convert $source -fill white -draw "color 1,1 floodfill" -scale 100x100 -gravity center -gravity south -background white -extent 100x100 $thumb}; $i->{image} = $image; $i->{thumbnail} = $thumb; # $i->{label} = $i->{opis_predmeta}; -- 2.20.1