Friday, October 13, 2017

iOS 11 heic format adds artifacts to masked image

Leave a Comment

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: https://imgur.com/a/uVtYh

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.

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment