The question does not provide enough information to provide a complete answer.
The message "bad adaptive filter" means that the PNG file is either damaged or has been generated by a code encoder.
Each line of a PNG file scan starts with a filter type byte, which should be 0, 1, 2, 3, or 4.
source
share