Skip to content

Error converting HEIC to JPEG #679

Description

@TheGitaly

Describe the bug
iOS 18 HEIC photos are unable to be converted by icloudpd when using parameter 'convert_heic_to_jpeg = True'.

Expected behaviour
HEIC images are converted to usable JPEG's and contained within same folder as HEIC.

Actual behaviour
Every image that conversion is attempted on results in the error "Invalid input: Unspecified: Metadata not correctly assigned to image (2.0) `/iCloud/2024/10/28/IMG_1516.HEIC' @ error/heic.c/IsHEIFSuccess/144." JPEG image is present in folder, but is 0kb in size and not an actual JPEG.

Quick Google brings up a bug report in another application using the libheif library - ImageMagick/ImageMagick#7426. Solution is to upgrade libheif - strukturag/libheif#1190

System (The following information must be entered or the issue will be closed):
QNAP QTS 5.2.0.2860
Container Station v3.0.8.981

Debug log file
2024-10-29 03:51:21 INFO Convert HEIC files to JPEG
2024-10-29 03:51:21 INFO Convert HEIC to JPEG...
2024-10-29 03:51:21 INFO Converting /iCloud/2024/10/28/IMG_1516.HEIC to /iCloud/2024/10/28/IMG_1516.JPG
convert: Invalid input: Unspecified: Metadata not correctly assigned to image (2.0) /iCloud/2024/10/28/IMG_1516.HEIC' @ error/heic.c/IsHEIFSuccess/144. convert: no images defined /iCloud/2024/10/28/IMG_1516.JPG' @ error/convert.c/ConvertImageCommand/3362.
2024-10-29 03:51:21 INFO Converting /iCloud/2024/10/28/IMG_1513.HEIC to /iCloud/2024/10/28/IMG_1513.JPG
convert: Invalid input: Unspecified: Metadata not correctly assigned to image (2.0) /iCloud/2024/10/28/IMG_1513.HEIC' @ error/heic.c/IsHEIFSuccess/144. convert: no images defined /iCloud/2024/10/28/IMG_1513.JPG' @ error/convert.c/ConvertImageCommand/3362.
2024-10-29 03:51:21 INFO Converting /iCloud/2024/10/28/IMG_1511.HEIC to /iCloud/2024/10/28/IMG_1511.JPG
convert: Invalid input: Unspecified: Metadata not correctly assigned to image (2.0) /iCloud/2024/10/28/IMG_1511.HEIC' @ error/heic.c/IsHEIFSuccess/144. convert: no images defined /iCloud/2024/10/28/IMG_1511.JPG' @ error/convert.c/ConvertImageCommand/3362.
2024-10-29 03:51:21 INFO Converting /iCloud/2024/10/28/IMG_1510.HEIC to /iCloud/2024/10/28/IMG_1510.JPG
convert: Invalid input: Unspecified: Metadata not correctly assigned to image (2.0) /iCloud/2024/10/28/IMG_1510.HEIC' @ error/heic.c/IsHEIFSuccess/144. convert: no images defined /iCloud/2024/10/28/IMG_1510.JPG' @ error/convert.c/ConvertImageCommand/3362.
2024-10-29 03:51:22 INFO Converting /iCloud/2024/10/28/IMG_1508.HEIC to /iCloud/2024/10/28/IMG_1508.JPG
convert: Invalid input: Unspecified: Too many auxiliary image references (2.0) /iCloud/2024/10/28/IMG_1508.HEIC' @ error/heic.c/IsHEIFSuccess/144. convert: no images defined /iCloud/2024/10/28/IMG_1508.JPG' @ error/convert.c/ConvertImageCommand/3362.
2024-10-29 03:51:22 INFO Converting /iCloud/2024/10/28/IMG_1507.HEIC to /iCloud/2024/10/28/IMG_1507.JPG
convert: Invalid input: Unspecified: Metadata not correctly assigned to image (2.0) /iCloud/2024/10/28/IMG_1507.HEIC' @ error/heic.c/IsHEIFSuccess/144. convert: no images defined /iCloud/2024/10/28/IMG_1507.JPG' @ error/convert.c/ConvertImageCommand/3362.
2024-10-29 03:51:22 INFO Converting /iCloud/2024/10/28/IMG_1506.HEIC to /iCloud/2024/10/28/IMG_1506.JPG
convert: Invalid input: Unspecified: Metadata not correctly assigned to image (2.0) /iCloud/2024/10/28/IMG_1506.HEIC' @ error/heic.c/IsHEIFSuccess/144. convert: no images defined /iCloud/2024/10/28/IMG_1506.JPG' @ error/convert.c/ConvertImageCommand/3362.
2024-10-29 03:51:22 INFO Converting /iCloud/2024/10/28/IMG_1505.HEIC to /iCloud/2024/10/28/IMG_1505.JPG
convert: Invalid input: Unspecified: Metadata not correctly assigned to image (2.0) /iCloud/2024/10/28/IMG_1505.HEIC' @ error/heic.c/IsHEIFSuccess/144. convert: no images defined /iCloud/2024/10/28/IMG_1505.JPG' @ error/convert.c/ConvertImageCommand/3362.
2024-10-29 03:51:22 INFO Converting /iCloud/2024/10/28/IMG_1504.HEIC to /iCloud/2024/10/28/IMG_1504.JPG
convert: Invalid input: Unspecified: Metadata not correctly assigned to image (2.0) /iCloud/2024/10/28/IMG_1504.HEIC' @ error/heic.c/IsHEIFSuccess/144. convert: no images defined /iCloud/2024/10/28/IMG_1504.JPG' @ error/convert.c/ConvertImageCommand/3362.
2024-10-29 03:51:22 INFO Converting /iCloud/2024/10/28/IMG_1503.HEIC to /iCloud/2024/10/28/IMG_1503.JPG
convert: Invalid input: Unspecified: Metadata not correctly assigned to image (2.0) /iCloud/2024/10/28/IMG_1503.HEIC' @ error/heic.c/IsHEIFSuccess/144. convert: no images defined /iCloud/2024/10/28/IMG_1503.JPG' @ error/convert.c/ConvertImageCommand/3362.
2024-10-29 03:51:22 INFO Converting /iCloud/2024/10/28/IMG_1502.HEIC to /iCloud/2024/10/28/IMG_1502.JPG
convert: Invalid input: Unspecified: Metadata not correctly assigned to image (2.0) /iCloud/2024/10/28/IMG_1502.HEIC' @ error/heic.c/IsHEIFSuccess/144. convert: no images defined /iCloud/2024/10/28/IMG_1502.JPG' @ error/convert.c/ConvertImageCommand/3362.
2024-10-29 03:51:22 INFO Converting /iCloud/2024/10/28/IMG_1501.HEIC to /iCloud/2024/10/28/IMG_1501.JPG
convert: Invalid input: Unspecified: Metadata not correctly assigned to image (2.0) /iCloud/2024/10/28/IMG_1501.HEIC' @ error/heic.c/IsHEIFSuccess/144. convert: no images defined /iCloud/2024/10/28/IMG_1501.JPG' @ error/convert.c/ConvertImageCommand/3362.
2024-10-29 03:51:22 INFO Converting /iCloud/2024/10/28/IMG_1500.HEIC to /iCloud/2024/10/28/IMG_1500.JPG
convert: Invalid input: Unspecified: Metadata not correctly assigned to image (2.0) /iCloud/2024/10/28/IMG_1500.HEIC' @ error/heic.c/IsHEIFSuccess/144. convert: no images defined /iCloud/2024/10/28/IMG_1500.JPG' @ error/convert.c/ConvertImageCommand/3362.
2024-10-29 03:51:22 INFO Converting /iCloud/2024/10/28/IMG_1499.HEIC to /iCloud/2024/10/28/IMG_1499.JPG
convert: Invalid input: Unspecified: Metadata not correctly assigned to image (2.0) /iCloud/2024/10/28/IMG_1499.HEIC' @ error/heic.c/IsHEIFSuccess/144. convert: no images defined /iCloud/2024/10/28/IMG_1499.JPG' @ error/convert.c/ConvertImageCommand/3362.
2024-10-29 03:51:22 INFO Converting /iCloud/2024/10/28/IMG_1498.HEIC to /iCloud/2024/10/28/IMG_1498.JPG
convert: Invalid input: Unspecified: Metadata not correctly assigned to image (2.0) /iCloud/2024/10/28/IMG_1498.HEIC' @ error/heic.c/IsHEIFSuccess/144. convert: no images defined /iCloud/2024/10/28/IMG_1498.JPG' @ error/convert.c/ConvertImageCommand/3362.
2024-10-29 03:51:22 INFO Converting /iCloud/2024/10/28/IMG_1497.HEIC to /iCloud/2024/10/28/IMG_1497.JPG
convert: Invalid input: Unspecified: Metadata not correctly assigned to image (2.0) /iCloud/2024/10/28/IMG_1497.HEIC' @ error/heic.c/IsHEIFSuccess/144. convert: no images defined /iCloud/2024/10/28/IMG_1497.JPG' @ error/convert.c/ConvertImageCommand/3362.
2024-10-29 03:51:22 INFO Converting /iCloud/2024/10/28/IMG_1496.HEIC to /iCloud/2024/10/28/IMG_1496.JPG
convert: Invalid input: Unspecified: Metadata not correctly assigned to image (2.0) /iCloud/2024/10/28/IMG_1496.HEIC' @ error/heic.c/IsHEIFSuccess/144. convert: no images defined /iCloud/2024/10/28/IMG_1496.JPG' @ error/convert.c/ConvertImageCommand/3362.
2024-10-29 03:51:22 INFO Converting /iCloud/2024/10/28/IMG_1495.HEIC to /iCloud/2024/10/28/IMG_1495.JPG
convert: Invalid input: Unspecified: Metadata not correctly assigned to image (2.0) /iCloud/2024/10/28/IMG_1495.HEIC' @ error/heic.c/IsHEIFSuccess/144. convert: no images defined /iCloud/2024/10/28/IMG_1495.JPG' @ error/convert.c/ConvertImageCommand/3362.
2024-10-29 03:51:22 INFO Converting /iCloud/2024/10/28/IMG_1494.HEIC to /iCloud/2024/10/28/IMG_1494.JPG
convert: Invalid input: Unspecified: Metadata not correctly assigned to image (2.0) /iCloud/2024/10/28/IMG_1494.HEIC' @ error/heic.c/IsHEIFSuccess/144. convert: no images defined /iCloud/2024/10/28/IMG_1494.JPG' @ error/convert.c/ConvertImageCommand/3362.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions