Bug 2393422

Summary: glycin-libs-2.0~rc-2.fc44: Fails to load 1-bpp TIFF
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: glycinAssignee: Fabio Valentini <decathorpe>
Status: CLOSED ERRATA QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: decathorpe, gnome-sig, kalevlember, rust-sig
Target Milestone: ---Keywords: Regression, Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glycin-2.0.0-1.fc44 glycin-2.0.2-1.fc43 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-10-02 01:21:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2390956    
Bug Blocks:    

Description Petr Pisar 2025-09-05 08:38:15 UTC
After Glycin replaced some gdk-pixbuf2 decoders, gscan2pdf fails its t/11271_save_pdf2_g4.t tests because decoding a 1-bpp TIFF image fails. A reproducer:

Generate the TIFF image file:

$ convert rose: -define tiff:rows-per-strip=1 -compress group4 test.tif
WARNING: The convert command is deprecated in IMv7, use "magick" instead of "convert" or "magick convert"

It is this kind of image:

$ identify test.tif 
test.tif TIFF 70x46 70x46+0+0 1-bit Bilevel Gray 250B 0.000u 0:00.000

Now try loading it with Gtk3 in Perl:

$ perl -e 'use Gtk3; Gtk3::Gdk::Pixbuf->new_from_file_at_scale(q{test.tif}, 32, 32, FALSE)'
Remote error: org.gnome.glycin.Error.LoadingError: glycin-loaders/glycin-image-rs/src/main.rs:346:54: The encoder or decoder for Tiff does not support the color type `Unknown(1)`

stderr:
Setting process memory limit
 at /usr/lib64/perl5/vendor_perl/Glib/Object/Introspection.pm line 67.

I guess the decoder is in glycin-libs-2.0~rc-2.fc44.x86_64.

Comment 1 Fabio Valentini 2025-09-08 18:33:55 UTC
TIFF support is implemented using the "tiff" crate.

It looks like 1bpp support was only fixed in v0.10.0?
https://github.com/image-rs/image-tiff/blob/main/CHANGES.md#version-0100

Comment 2 Fabio Valentini 2025-09-09 15:51:57 UTC
This should be addressed with the next version of glycin, which bumped the "tiff" crate dependency past a version that should (?) fix this issue.

Comment 3 Fedora Update System 2025-09-16 00:46:43 UTC
FEDORA-2025-d811328943 (glycin-2.0.0-1.fc44, loupe-49.0-1.fc44, and 7 more) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-d811328943

Comment 4 Fedora Update System 2025-09-16 01:42:50 UTC
FEDORA-2025-d811328943 (glycin-2.0.0-1.fc44, loupe-49.0-1.fc44, and 7 more) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 5 Petr Pisar 2025-09-16 10:44:34 UTC
glycin-2.0.0-1.fc44 fails with a different error now:

$ rpm -q glycin-libs                                                               glycin-libs-2.0.0-1.fc44.x86_64
test@fedora-44:/tmp $ perl -e 'use Gtk3; Gtk3::Gdk::Pixbuf->new_from_file_at_scale(q{test.tif}, 32, 32, FALSE)'
Remote error: org.gnome.glycin.Error.LoadingError: glycin-loaders/glycin-image-rs/src/main.rs:222:29: /usr/share/cargo/registry/glycin-utils-4.0.0/src/image_rs.rs:60:41: The decoder for Tiff does not support the format features compression method Fax4 is unsupported

stderr:
Setting process memory limit
 at /usr/lib64/perl5/vendor_perl/Glib/Object/Introspection.pm line 67.

Comment 6 Fabio Valentini 2025-09-16 15:52:27 UTC
Aha. Ok, that's a different issue then. Support for "fax" TIFF format was only added in tiff 0.10.3, which added two new dependencies that are still pending review.

Comment 7 Fedora Update System 2025-09-29 21:26:20 UTC
FEDORA-2025-87fb66138f (glycin-2.0.2-1.fc43, rust-fax-0.2.6-1.fc43, and 4 more) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-87fb66138f

Comment 8 Fedora Update System 2025-09-30 01:34:04 UTC
FEDORA-2025-87fb66138f has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-87fb66138f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-87fb66138f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Petr Pisar 2025-09-30 12:50:48 UTC
Thanks. That works for me in Fedora 44 now.

Comment 10 Fedora Update System 2025-10-01 15:59:02 UTC
FEDORA-2025-87fb66138f has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-87fb66138f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-87fb66138f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2025-10-02 01:21:04 UTC
FEDORA-2025-87fb66138f (gdk-pixbuf2-2.44.3-1.fc43, glycin-2.0.2-1.fc43, and 6 more) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.