-
-
Notifications
You must be signed in to change notification settings - Fork 202
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
mouse ear gets stuck #116
Comments
If I use v1.2.3, this problem is not occurred. |
@duyenlv I checked the provided image and now I can say it is an image issue. I will explain it a bit better in following. I added a frame debugging view controller in the demo app and checked the frames of this image: The yellow area indicates the full image size, and the orange overlay layer is the drawing area defined in this frame:
So, in the following frames, until the pixels above That means, any implementation can display that image without a "persistence" might be doing wrongly. Maybe it is a good idea to check your APNG creating or exporting tool to make sure it is correctly following APNG spec. Sure I can be wrong, please feel free to let me know if I made a mistake above. |
@onevcat Thanks for your explanation, I encounter this issue with Mac Finder too, I am working for client's project, they ask me a question that the problem isn't occurred while running both Web Browser (you can drag the file to the browser address bar) and Android app (use https://github.com/penfeizhou/APNG4Android), but it's occurred in iOS app (use this library). |
First, the browser implementation for APNG is very buggy, especially for Safari. You may check this page (https://philip.html5.org/tests/apng/tests.html) with Safari to see quite a few red blocks, which indicates the failing case. Especially for the
For https://github.com/penfeizhou/APNG4Android, I checked the code and it copies the previous content to the bitmap, but never draw it back to the canvas. (Again, I am not an expert of Android so I can be wrong.) Also, the old implementation of APNGKit v1.x was definitely wrong. For now, to me, it is quite strange that the image is using a |
@duyenlv I guess it was my mis-understanding of the spec. A PR was made to fix this issue and I will tag it soon once merged. Thanks for reporting it and the discussion! |
Version 2.1.2 was released and this issue should be fixed. |
Hi team. I have an issue could you help?
I used APNGKit v2.0.2, it works for me with almost apng images, but I encountered an issue with
![mouse](https://user-images.githubusercontent.com/2205362/144172876-c1e7f05e-af25-460c-b367-9c4ab3914a5f.png)
Screen.Recording.2021-12-01.at.11.35.49.mov
I tried view this image on the Safari browser (Mac OS) with url:
file:///Users/../Downloads/mouse.png
- no stuck ear.The text was updated successfully, but these errors were encountered: