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.
Nobody/Anonymous
None
None
Public