]> git.proxmox.com Git - pve-docs.git/blame_incremental - png-verify.pl
output-format.adoc: fix typo
[pve-docs.git] / png-verify.pl
... / ...
CommitLineData
1#!/usr/bin/perl
2
3use strict;
4use warnings;
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};
15
16my $infile = shift ||
17 die "no input file specified\n";
18
19my $basename = basename($infile);
20
21my $dpcm = $installer_images->{$basename} ? 72 : 58; # expected
22
23my $tmp = `identify -units PixelsPerCentimeter -format '%x x %y' $infile`;
24
25die "$infile: got unexpected density '$tmp' (fix with png-cleanup.pl)\n"
26 if $tmp ne "$dpcm x $dpcm";
27
28exit 0;