Make WordPress Core

Opened 6 weeks ago

Last modified 6 weeks ago

#65447 new defect (bug)

Heic to JPG conversion not working with newer files

Reported by: GrayMediaLtd Owned by:
Priority: normal Milestone: Awaiting Review
Component: Media Version: 7.0
Severity: normal Keywords:
Cc: Focuses:

Description

When uploading HEIC images, files created on my iphone 17 don't convert to JPG, but files created on my iphone se 2 do convert.

I've been testing with my webhost and we have tried stripping the metadata out, and once the metadata is gone from the file it will upload. We isolated the issue to the newer images, it was happening regardless of file size too.

Attachments (2)

IMG_0653.HEIC (3.0 MB ) - added by GrayMediaLtd 6 weeks ago.
Iphone17 photo, won't upload
IMG_3919.HEIC (1.8 MB ) - added by GrayMediaLtd 6 weeks ago.
iphone SE 2 photo, will upload

Change History (7)

@GrayMediaLtd
6 weeks ago

Iphone17 photo, won't upload

@GrayMediaLtd
6 weeks ago

iphone SE 2 photo, will upload

#2 in reply to: ↑ 1 @GrayMediaLtd
6 weeks ago

Replying to siliconforks:

Possibly your server's version of libheif is too old?

See:

https://github.com/Imagick/imagick/issues/675
https://github.com/strukturag/libheif/issues/1190

Imagick is on version 3.8.1 which appears to have the latest libheif bundled with it from those threads?

#3 @siliconforks
6 weeks ago

Do you know what your libheif version is?

If you can run the ImageMagick identify command from the command line, you should be able to list all supported image formats:

identify -list format

The output of that command should contain a line with "HEIC" in it which has the libheif version number.

#4 follow-up: @GrayMediaLtd
6 weeks ago

So I can't run the magick command, but I can run this

ls -l /lib/x86_64-linux-gnu/libheif.so.1

Which suggests that the version of libheif is 1.12.0?

lrwxrwxrwx 1 root root 17 Nov 7 2021 /lib/x86_64-linux-gnu/libheif.so.1 -> libheif.so.1.12.0

#5 in reply to: ↑ 4 @siliconforks
6 weeks ago

Replying to GrayMediaLtd:

Which suggests that the version of libheif is 1.12.0?

If that's the version you're using, that seems quite old - I think you would need at least version 1.18 to fix the issue.

Note: See TracTickets for help on using tickets.