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

Support for odd-sized HEIC images #32

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

yoya
Copy link
Collaborator

@yoya yoya commented Jun 22, 2020

odd size HEIC image output, it's truncated by 1 pixel.
ex) w=99,h=99,fo=heic => 98x98 heic output.

#31

This is a limitation of libheif & x265.
Probably for the convenience of YUV420 subsampling.

As a workaround, increase the size by 1 pixel to generate a HEIC image binary, and rewrite the size information of the ispe box in the binary to its original size.

@yoya
Copy link
Collaborator Author

yoya commented Jul 31, 2020

odd size HEIC image output, it's truncated by 1 pixel.
ex) w=99,h=99,fo=heic => 98x98 heic output.

Workaround by #34, HEIC with a final size less than 100 will be processed as JPEG.
Try following condition, Please.

  • w=199,h=199,fo=heic
  • current => 198x198 heic output.
  • this PR => 199x199 heic output. (inner hevc 200, ispe 199 in container)

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

Successfully merging this pull request may close these issues.

1 participant