my app was killed,and the log :libpng warning: Ignoring bad adaptive filter type. I want to know the reason,and the solution.
相关问题
- “kill -15” triggers the sigaction code but does no
- What's the quickest and easiest way of getting
- How to define (non-method) functions in header lib
- Java ant script does not show warnings
- Is -Wreturn-std-move clang warning correct in case
相关文章
- Suppress “Circular dependency detected” suppress w
- How to force Delphi compiler to display all hints
- “Access of shared member, constant member, enum me
- Clean shutdown of a Python script
- How to do lengthy operations without being killed
- Is this an incorrect warning?
- libpng warning: Ignoring bad adaptive filter type
- Visual C++: How is checked_array_iterator useful?
The question gives insufficient information to provide a complete answer.
The "bad adaptive filter type" message means that the PNG file is either corrupted or was generated by a buggy encoder.
Each scanline of a PNG file begins with a "filter type" byte which must be 0, 1, 2, 3, or 4.
I had this issue before, the image was corrupted by unknown reason, the solution of catching such an error can be using the code below (in Python):