]> git.proxmox.com Git - pve-docs.git/blame - png-verify.pl
add auto-generated screenshots
[pve-docs.git] / png-verify.pl
CommitLineData
f250356f
DM
1#!/usr/bin/perl
2
3use strict;
4use warnings;
5
6my $infile = shift ||
7 die "no input file specified\n";
8
9my $dpi = 146; # expected
10
11my $tmp = `identify -units PixelsPerInch -format '%x x %y' $infile`;
12
13die "got unexpected DPI density '$tmp' (fix with png-cleanup.pl)\n"
14 if $tmp ne "$dpi x $dpi";
15
16exit 0;