]> git.proxmox.com Git - pmg-docs.git/blame - png-verify.pl
bump version to 5.0-8
[pmg-docs.git] / png-verify.pl
CommitLineData
410dc2c9
DM
1#!/usr/bin/perl
2
3use strict;
4use warnings;
5
6my $infile = shift ||
7 die "no input file specified\n";
8
9my $dpcm = 58; # expected
10
11my $tmp = `identify -units PixelsPerCentimeter -format '%x x %y' $infile`;
12
13die "got unexpected density '$tmp' (fix with png-cleanup.pl)\n"
14 if $tmp ne "$dpcm x $dpcm";
15
16exit 0;