Skip to content
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

Ghost pixels on animated png #40

Closed
jeanbmar opened this issue Nov 1, 2019 · 4 comments
Closed

Ghost pixels on animated png #40

jeanbmar opened this issue Nov 1, 2019 · 4 comments

Comments

@jeanbmar
Copy link

jeanbmar commented Nov 1, 2019

Hi,

I've noticed an issue when encoding an APNG file with default params:
test
I can't pinpoint what's wrong exactly, but I have a feeling it's related to blending.
Replacing the regular encode call with the following code fixed the issue (huge thanks for exposing the internal methods btw):

var nimg = UPNG.encode.compress(bufs, w, h, ps, [true, false, false, 0, false]);
UPNG.encode.compressPNG(nimg, -1);
UPNG.encode._main(nimg, w, h, dels);

test-ok

@photopea
Copy link
Owner

photopea commented Nov 1, 2019

Hi, can you give me your animation in GIF or (correct) APNG format, so that I can try it myself?

@jeanbmar
Copy link
Author

jeanbmar commented Nov 1, 2019

Edited my original post with the Ok APNG

@photopea
Copy link
Owner

photopea commented Nov 1, 2019

Hi, it is so strange. I opened your APNG in www.Photopea.com and tried to export it as PNG. The result seems do be correct (without any ghost pixels).

I updated UPNG.js with the latest version from my computer. Can you try it again?

@blitzbohne blitzbohne mentioned this issue Apr 13, 2020
Closed
@photopea
Copy link
Owner

photopea commented May 7, 2020

I will have to close it because of lack of details.

@photopea photopea closed this as completed May 7, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants