libgd should come with HEIF support

Asked by rhi


My suggestion is that PHP/libgd could come with HEIF/HEIC support by default (for instance to allow PHP apps like Nextcloud generate thumbnails of uploaded photos).

It seems that libgd doesn't come with HEIF support at the moment (Ubuntu 22.04), probably because the packaged version is currently 2.3.0-2ubuntu2.

gdlib has HEIF support since 2.3.2:

It would be very nice if this could be supported because HEIF is the standard (and better) format for many mobile devices now. A free implementation is available so I think the desktop PC shouldn't be unable to view images made with the mobile phone.


Question information

English Edit question
Ubuntu libgd2 Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said (last edit ):

Ubuntu is copying packages from Debian (to avoid double packaging work) and also Debian has only version 2.3.0-*, see

There is already a bug report requesting an update in Debian
When Debian update their package, Ubuntu will take over the new version into the Ubuntu release that is in development at that time (probably 22.10).

Upgrading the package version in already-published Ubuntu releases (e.g. 22.04) requires a SRU or backport. See and for details.

Can you help with this problem?

Provide an answer of your own, or ask rhi for more information if necessary.

To post a message you must log in.