-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Invalid filter" error is thrown when loading a PNG image. #21
Comments
Having the same error here: I've looked at the output of the OK, found it, not much info here though :( https://groups.google.com/forum/#!searchin/haxelang/invalid$20filter/haxelang/waVJZdAcRtw/IC4tNSBKyzYJ |
What's the id of the filter that is said to be invalid? By looking at https://github.com/HaxeFoundation/format/blob/master/format/png/Tools.hx#L153 , it seems that it implements all required filters by the spec ( http://www.w3.org/TR/PNG-Filters.html ) |
@waneck It's not the id of the filter, the whole image payload seems to be garbled. When I trace the values I get from the data ( Here's the precise output:
|
Okay, it seems that the problem is that the png reader code is expecting that a new filter value is defined for each row. It seems that the whole problem is with this. |
I haven't investigated too much, but it seems to be related with interlaced images. See https://code.google.com/p/javapng/source/browse/trunk/javapng2/src/main/com/sixlegs/png/ImageFactory.java#140 |
It's not grayscale, the color mode is identified correctly: |
Ah yeah, I mentioned the wrong line. I meant the same part but on color :) |
As we discussed in the mailing list, an "Invalid Filter" error is thrown when loading the PNG at the bottom of this post. The error is thrown by this piece of code :
https://github.com/HaxeFoundation/format/blob/master/format/png/Tools.hx
The error occur when loading the PNG with Heaps.
The text was updated successfully, but these errors were encountered: