X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=blobdiff_plain;f=png-cleanup.pl;h=49c7cb45b6d92f7db94a9a55844f2954a1e0deec;hp=be82c59038bf340b35c2d48e81fc6d146cc20586;hb=8df8cfb7f80a978e8c9f3d79638f497f34a2928a;hpb=f250356fdf56d6f43aa44c4abfe869c48b622ae5 diff --git a/png-cleanup.pl b/png-cleanup.pl index be82c59..49c7cb4 100755 --- a/png-cleanup.pl +++ b/png-cleanup.pl @@ -12,11 +12,12 @@ my $outfile = shift || # use the following to verify image attributes # identify -verbose -# set DPI to 146, so that we can display 1024 pixels (page width) +# set PixelsPerCentimeter to 58, so that we can display 1024 +# pixels (page width) -my $dpi = 146; +my $dpcm = 58; -system("convert -units PixelsPerInch $infile -density $dpi $outfile"); +system("convert -units PixelsPerCentimeter $infile -density $dpcm $outfile"); # identify should return the same value -# system("identify -units PixelsPerInch -format '%x x %y' $outfile"); +# system("identify -units PixelsPerCentimeter -format '%x x %y' $outfile");