-
Notifications
You must be signed in to change notification settings - Fork 10
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
Not supported FourCC: A.L.P.H. #2
Comments
Same here |
Hello @b4rtaz, Thank you for your work. Any update for alpha channel |
Not supported FourCC: I.C.C.P. |
In case someone still need it:
P.S. Maybe will send PR later. |
Thanks and write for ALPHA as well please? |
Ok using smae code of ICCP for ALPH solved the isseu. PS: but transparent files throws error |
It handles the error but It won't preserve the transparency rather it will add solid black background. public WebpChunk read() throws IOException {
byte[] fcc = new byte[4];
if (read(fcc, 4) > 0) {
...
//added
if (isFourCc(fcc, 'I', 'C', 'C', 'P'))
return readIccp();
if (isFourCc(fcc, 'A', 'L', 'P', 'H'))
return readAlph();
...
}
...
}
private WebpChunk readAlph() throws IOException {
int chunkSize = readUInt32();
WebpChunk chunk = new WebpChunk(WebpChunkType.ALPH);
readPayload(chunkSize);
return chunk;
} |
Not supported FourCC: A.L.P.H.
How to deal with it
The text was updated successfully, but these errors were encountered: