add nsxiv "image-info" script

This commit is contained in:
Ivan Kovmir 2022-08-30 07:05:01 +02:00
parent 9aeea79c45
commit 85cbec1e55
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
#!/usr/bin/env perl
use v5.14;
my ($path, $width, $height) = @ARGV;
my $size = (-s $path) / 1e6;
print "$path ${size}MB ${width}x$height";