]> git.proxmox.com Git - pve-docs.git/blame - png-verify.pl
fix #1959: remove any information regarding 'auto'
[pve-docs.git] / png-verify.pl
CommitLineData
f250356f
DM
1#!/usr/bin/perl
2
3use strict;
4use warnings;
3bf6c8e6
DM
5use File::Basename;
6
7my $installer_images = {
8 'pve-grub-menu.png' => 1,
9 'pve-installation.png' => 1,
10 'pve-select-location.png' => 1,
11 'pve-select-target-disk.png' => 1,
12 'pve-set-password.png' => 1,
13 'pve-setup-network.png' => 1,
14};
f250356f
DM
15
16my $infile = shift ||
17 die "no input file specified\n";
18
3bf6c8e6
DM
19my $basename = basename($infile);
20
21my $dpcm = $installer_images->{$basename} ? 72 : 58; # expected
f250356f 22
9798ad65 23my $tmp = `identify -units PixelsPerCentimeter -format '%x x %y' $infile`;
f250356f 24
3bf6c8e6 25die "$infile: got unexpected density '$tmp' (fix with png-cleanup.pl)\n"
9798ad65 26 if $tmp ne "$dpcm x $dpcm";
f250356f
DM
27
28exit 0;