Public bug reported:

I have TIFF files compressed with old software.

When I try to open them with glycine I get:

```
Remote error: org.gnome.glycin.Error.LoadingError: 
glycin-loaders/glycin-image-rs/src/main.rs:228:29: 
/build/glycin-4c1ygj/glycin-2.1.1+ds/debian/missing-sources/glycin-utils/src/image_rs.rs:60:41:
 Format error decoding Tiff: platform or format size limits exceeded

stderr:
Setting process memory limit
```

This is the start of a file that fails to open.

```sh
$ tiffdump 206-05.tif | head -80
206-05.tif:
Magic: 0x4949 <little-endian> Version: 0x2a <ClassicTIFF>
Directory 0: offset 21568 (0x5440) next 0 (0)
ImageWidth (256) SHORT (3) 1<1092>
ImageLength (257) SHORT (3) 1<1473>
BitsPerSample (258) SHORT (3) 1<1>
Compression (259) SHORT (3) 1<4>
Photometric (262) SHORT (3) 1<0>
StripOffsets (273) LONG (4) 1<8>
Orientation (274) SHORT (3) 1<1>
SamplesPerPixel (277) SHORT (3) 1<1>
RowsPerStrip (278) LONG (4) 1<4294967295>
StripByteCounts (279) LONG (4) 1<21560>
XResolution (282) RATIONAL (5) 1<59.06>
YResolution (283) RATIONAL (5) 1<59.06>
PlanarConfig (284) SHORT (3) 1<1>
ResolutionUnit (296) SHORT (3) 1<3>
Software (305) ASCII (2) 35<ThumbsPlus image managem ...>
```

I can open then with Gimp and export them again, and this gets a valid
version. A copy made with `tiffcopy` remains "broken".

It seems this might be related to the `RowsPerStrip` value. When
exported with Gimp, the new copy has recomputed (I guess), while the
`tiffcopy` created copy keeps the original value.

ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: glycin-loaders 2.1.1+ds-0ubuntu1
ProcVersionSignature: Ubuntu 7.0.0-28.28-generic 7.0.12
Uname: Linux 7.0.0-28-generic x86_64
ApportVersion: 2.34.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Sat Jul 25 19:34:36 2026
InstallationDate: Installed on 2025-12-31 (207 days ago)
InstallationMedia: Ubuntu 25.10 "Questing Quokka" - Release amd64 (20251007)
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
SourcePackage: glycin
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: glycin (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug resolute wayland-session

** Attachment added: "Example "broken" file."
   https://bugs.launchpad.net/bugs/2161814/+attachment/5986456/+files/206-05.tif

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2161814

Title:
  Valid TIFF file fails to open

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glycin/+bug/2161814/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to