I'm using the new HEIC format to save a masked image to documents directory. When comparing to the PNG version of the same masked image I see that some new articafts have been added.
Here is a screenshot of the effected image:
Here's a link to working repository showcasing this issue (please view the generated image through the new ios 11 Files app). https://github.com/vondiplo/heic_wrong_encode
1 Answers
Answers 1
The mask provided in the git is an 100x98 px, try to use a bigger resolution image as mask that's the reason why there are artifacts, also keep in mind that PNG is uncompressed while hevc/heif is compressed so you can't really compare them.
0 comments:
Post a Comment