Skip to content
This repository has been archived by the owner on Dec 23, 2021. It is now read-only.

unsupported FileTypeBox('ftyp') brands #8

Open
mvysny opened this issue Mar 4, 2020 · 4 comments
Open

unsupported FileTypeBox('ftyp') brands #8

mvysny opened this issue Mar 4, 2020 · 4 comments

Comments

@mvysny
Copy link

mvysny commented Mar 4, 2020

Hi, thank you so much for the library. Unfortunately a very simple example file can not be loaded for the following reason:

    java.io.IOException: unsupported FileTypeBox('ftyp') brands
        at jp.yohhoy.heifreader.HeifReader.parseHeif(HeifReader.java:262)
        at jp.yohhoy.heifreader.HeifReader.decodeByteArray(HeifReader.java:143)
        at jp.yohhoy.heifreader.HeifReader.decodeFile(HeifReader.java:182)

Even though the ftyp is

D/HeifReader: HEIC ftyp=FileTypeBox[majorBrand=heic;minorVersion=0;compatibleBrand=mif1;compatibleBrand=heic]
@mvysny
Copy link
Author

mvysny commented Mar 4, 2020

The image in question:
hu.heic.zip

@mvysny
Copy link
Author

mvysny commented Mar 4, 2020

Also lossy image produced by Krita fails to load
hu.heic.zip

@yohhoy
Copy link
Owner

yohhoy commented Mar 9, 2020

accept majorBrand='heic' image file at 4de7ec9.

@mvysny
Copy link
Author

mvysny commented Mar 9, 2020

Thank you, awesome 👍 However I tried to comment that check myself, in order to force the heifreader to read the "hu.heic" image (attached above), but the image came out corrupted (weirdly skewed). I wonder if this will require some modifications to the decoder algorithm as well...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants