Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 840981 - media-gfx/gthumb: add optional HEIF and JPEG-XL support
Summary: media-gfx/gthumb: add optional HEIF and JPEG-XL support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-26 08:37 UTC by Daniel Novomeský
Modified: 2022-05-16 22:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Novomeský 2022-04-26 08:37:01 UTC
Hello,
gthumb has heif jpegxl use flags but dependencies were not added yet.

I suggest adding something like
heif? ( >=media-libs/libheif-1.12.0-r1:= )
jpegxl? ( media-libs/libjxl:= )

I think that new version of libjxl will be released in near future and the rebuild will be probably needed.
Comment 1 Mart Raudsepp gentoo-dev 2022-04-26 10:09:17 UTC
What exactly do these library deps add as value to gthumb? I suppose libjxl adds JPEG XL viewing support, but what about HEIF? Would it be mainly used for AVIF support or HEIF in general? Basically as a used I wouldn't know to really make the connection between HEIF and AVIF here, so I'm unsure about this widespread use of IUSE=heif.
Comment 2 Daniel Novomeský 2022-04-26 11:19:53 UTC
libheif is used by gthumb to load HEIF/HEIC and AVIF images.

libjxl is used to load JPEG XL (*.jxl) images.

HEIF and AVIF use similar container (which is ISO BMFF based, like MP4), but HEIF use pixel data compressed with h265/HEVC coded and AVIF use free AV1 codec.

If you want AVIF support in GIMP, you need to add the heif use flag too.

libheif can be built in such way that it support both HEIF and AVIF or only one of them.

BTW, gthumb was able to load AVIF images even before they added native loading support via libheif. AVIF loading worked via gdk-pixbuf plug-in installed by libavif.
Comment 3 Matt Turner gentoo-dev 2022-04-26 19:24:03 UTC
Crap, looks like I added the flags and wiring but not the dependencies.
Comment 4 Larry the Git Cow gentoo-dev 2022-05-16 22:23:55 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0093adaa71556161d7e81cfa1d277e19ab91926

commit d0093adaa71556161d7e81cfa1d277e19ab91926
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2022-05-16 22:21:48 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2022-05-16 22:23:43 +0000

    media-gfx/gthumb: Add missing jxl and libheif deps
    
    Closes: https://bugs.gentoo.org/840981
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 .../gthumb/{gthumb-3.12.2-r1.ebuild => gthumb-3.12.2-r2.ebuild}     | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)