Skip to content

Error on processing HEIC images taken on iOS18 iPhone - Metadata not correctly assigned to image (2.0) #527

Description

@codedoga

This is the error that I'm getting with with new image/heic taken with iPhone 15 Pro:

2025-03-11T20:01:41.067Z        DEBUG   imagor/imagor.go:614    suppress        {"key": "IMG_6769.HEIC"}
2025-03-11T20:01:41.375Z        DEBUG   vips/processor.go:107   vips    {"log": "closing source 0x400084a3c0"}
2025-03-11T20:01:41.375Z        WARN    imagor/imagor.go:417    process {"params": {"path":"IMG_6769.HEIC","image":"IMG_6769.HEIC","unsafe":true}, "error": "imagor: 406 source_custom: bad seek to 2592640\nheif: Invalid input: Unspecified: Metadata not correctly assigned to image (2.0)"}
github.com/cshum/imagor.(*Imagor).Do.func2
        /go/src/github.com/cshum/imagor/imagor.go:417
github.com/cshum/imagor.(*Imagor).suppress.func2
        /go/src/github.com/cshum/imagor/imagor.go:626
golang.org/x/sync/singleflight.(*Group).doCall.func2
        /go/pkg/mod/golang.org/x/sync@v0.9.0/singleflight/singleflight.go:198
golang.org/x/sync/singleflight.(*Group).doCall
        /go/pkg/mod/golang.org/x/sync@v0.9.0/singleflight/singleflight.go:200

It seems to be fixable by upgrading libheif - same issue with ImageMagick

tested image only available for 7 days

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions