5
0
mirror of git://git.proxmox.com/git/pve-docs.git synced 2025-02-02 09:47:07 +03:00
pve-docs/png-verify.pl
2016-11-10 16:39:35 +01:00

17 lines
312 B
Perl
Executable File

#!/usr/bin/perl
use strict;
use warnings;
my $infile = shift ||
die "no input file specified\n";
my $dpcm = 58; # expected
my $tmp = `identify -units PixelsPerCentimeter -format '%x x %y' $infile`;
die "got unexpected density '$tmp' (fix with png-cleanup.pl)\n"
if $tmp ne "$dpcm x $dpcm";
exit 0;