$cmds //= [];
$imgpath->convert($thumbpath, $cmds, '300x200') and # low-res cover
$imgpath->convert($thumbpath =~ s/\.jpg$/.webp/r,
- $cmds, '600x400' # higher dpi
+ [@{$cmds}, -quality => 40], '600x400' # higher dpi tradeoff
);
}
'convert',
$$imgpath,
-delete => '1--1', -background => 'white',
+ '-strip', -quality => '60%', -interlace => 'plane',
-gravity => defined $cmds ? 'northwest' : 'center',
@cmds,
-resize => "$xyres^", -extent => $xyres,
- '-strip', -quality => '60%', -interlace => 'plane',
$thumbpath
);