Menu

#1 netflow_graph.pl creates wrong .png images

open
nobody
None
5
2003-03-28
2003-03-28
No

if the output mode default is text png files are created as
corrupted.

solution is forcing output mode to binary. So, inser
between every open and print commands " binmode
OUT;" command

example:

if ($customer_mode) {
open OUT,">$customer"."$table/$port.png";
} else {
open OUT,">$customer"."$ip/$table/$port.png";
}
binmode OUT;
print OUT $im->png;
close OUT;
}

see attaced file

Cheers Bufalooo.

Discussion


Log in to post a comment.