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

1.19.5: some specific HEIC images reading result is changed. #1472

Open
dinoele opened this issue Feb 20, 2025 · 0 comments
Open

1.19.5: some specific HEIC images reading result is changed. #1472

dinoele opened this issue Feb 20, 2025 · 0 comments

Comments

@dinoele
Copy link

dinoele commented Feb 20, 2025

Hi,

After upgrading libheif from version 1.17.6 to the latest version 1.19.5, it was discovered that some specific HEIC images reading result is changed.

  1. Two files in 1.19.5 version are marked as invalid with the following reason while they are considered as valid in 1.17.6:
    Could not read HEIF/AVIF file: Unsupported feature: Unsupported essential item property: could not parse item property 'rref'

Here are the output of heif-info.exe for different versions:
1.17.6:

MIME type: unknown
main brand: mif2
compatible brands: mif2, mif1

image: 1280x720 (id=1002)
  colorspace: YCbCr, 4:2:0
  bit depth: 8
  color profile: no
  alpha channel: no
  depth channel: no
metadata:
  none
transformations:
  none
region annotations:
  none
properties:

image: 1280x720 (id=1004), primary
  colorspace: YCbCr, 4:2:0
  bit depth: 8
  color profile: no
  alpha channel: no
  depth channel: no
metadata:
  none
transformations:
  none
region annotations:
  none
properties:

1.19.5:

MIME type: unknown
main brand: mif2
compatible brands: mif2, mif1
Could not read HEIF/AVIF file: Unsupported feature: Unsupported essential item property: could not parse item property 'rref'

Could you please advise whether additional validation is added and whether these files aren't valid? (which means that it isn't a regression but improvement)
I suppose that this commit has changed the behavior: 03cf1f6

The files:

ref_error_heif_images.zip

  1. One file is marked as valid in 1.19.5 while in 1.17.6 it was marked as invalid with the following reason:
    Could not decode image Invalid input: Missing grid images: Tile image ID=20014 is not a proper image.

Here are the output of heif-info.exe in different versions:
1.17.6:

MIME type: image/heic
main brand: heis
compatible brands: mif1, heic, heis

image: 512x256 (id=20010), primary
  colorspace: YCbCr, 4:2:0
  bit depth: 8
  color profile: no
  alpha channel: no
  depth channel: no
metadata:
  none
transformations:
  none
region annotations:
  none
properties:

image: 512x256 (id=20011)
  colorspace: YCbCr, 4:2:0
  bit depth: 8
  color profile: no
  alpha channel: no
  depth channel: no
metadata:
  none
transformations:
  none
region annotations:
  none
properties:

image: 512x256 (id=20012)
  colorspace: YCbCr, 4:2:0
  bit depth: 8
  color profile: no
  alpha channel: no
  depth channel: no
metadata:
  none
transformations:
  none
region annotations:
  none
properties:

image: 512x256 (id=20013)
  colorspace: YCbCr, 4:2:0
  bit depth: 8
  color profile: no
  alpha channel: no
  depth channel: no
metadata:
  none
transformations:
  none
region annotations:
  none
properties:

image: 1024x512 (id=20018)
  colorspace: YCbCr, 4:2:0
  bit depth: 8
  color profile: no
  alpha channel: no
  depth channel: no
metadata:
  none
transformations:
  none
region annotations:
  none
properties:

image: 1024x512 (id=20019)
  colorspace: YCbCr, unknown
  bit depth: -1
  color profile: no
  alpha channel: no
  depth channel: no
metadata:
  none
transformations:
  none
region annotations:
  none
properties:
Could not decode image Invalid input: Missing grid images: Tile image ID=20014 is not a proper image.

1.19.5:

MIME type: image/heic
main brand: heis
compatible brands: mif1, heic, heis

image: 512x256 (id=20010), primary
  colorspace: YCbCr, 4:2:0
  bit depth: 8
  color profile: no
  alpha channel: no
  depth channel: no
metadata:
  none
transformations:
  none
region annotations:
  none
properties:

image: 512x256 (id=20011)
  colorspace: YCbCr, 4:2:0
  bit depth: 8
  color profile: no
  alpha channel: no
  depth channel: no
metadata:
  none
transformations:
  none
region annotations:
  none
properties:

image: 512x256 (id=20012)
  colorspace: YCbCr, 4:2:0
  bit depth: 8
  color profile: no
  alpha channel: no
  depth channel: no
metadata:
  none
transformations:
  none
region annotations:
  none
properties:

image: 512x256 (id=20013)
  colorspace: YCbCr, 4:2:0
  bit depth: 8
  color profile: no
  alpha channel: no
  depth channel: no
metadata:
  none
transformations:
  none
region annotations:
  none
properties:

image: 1024x512 (id=20018)
  tiles: 2x2, tile size: 512x256
  colorspace: YCbCr, 4:2:0
  bit depth: 8
  color profile: no
  alpha channel: no
  depth channel: no
metadata:
  none
transformations:
  none
region annotations:
  none
properties:

image: 1024x512 (id=20019)

Could you please advise whether it is expected that this file is considered to be valid in the latest version?

The file:

multilayer002.zip

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

No branches or pull requests

1 participant