X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=blobdiff_plain;f=png-verify.pl;h=8eb661139f88e3cd9f91d42d97dab034368313fb;hp=248f9fb482ba84f3a0f10d9f683a5bb8d6f3a2fe;hb=e8503c6cca8466168efc1128963dff2c7cda660f;hpb=f250356fdf56d6f43aa44c4abfe869c48b622ae5 diff --git a/png-verify.pl b/png-verify.pl index 248f9fb..8eb6611 100755 --- a/png-verify.pl +++ b/png-verify.pl @@ -6,11 +6,11 @@ use warnings; my $infile = shift || die "no input file specified\n"; -my $dpi = 146; # expected +my $dpcm = 58; # expected -my $tmp = `identify -units PixelsPerInch -format '%x x %y' $infile`; +my $tmp = `identify -units PixelsPerCentimeter -format '%x x %y' $infile`; -die "got unexpected DPI density '$tmp' (fix with png-cleanup.pl)\n" - if $tmp ne "$dpi x $dpi"; +die "got unexpected density '$tmp' (fix with png-cleanup.pl)\n" + if $tmp ne "$dpcm x $dpcm"; exit 0;