Bug 94372 - Not possible to open or insert a JPG compressed TIFF
Summary: Not possible to open or insert a JPG compressed TIFF
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: Other All
: medium normal
Assignee: Caolán McNamara
URL:
Whiteboard: BSA target:7.4.0
Keywords:
: 118182 (view as bug list)
Depends on:
Blocks: Images-TIFF
  Show dependency treegraph
 
Reported: 2015-09-20 08:52 UTC by Yousuf Philips (jay) (retired)
Modified: 2022-05-21 18:17 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
sample tiff (791.41 KB, image/tiff)
2015-09-20 08:52 UTC, Yousuf Philips (jay) (retired)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yousuf Philips (jay) (retired) 2015-09-20 08:52:16 UTC
Created attachment 118870 [details]
sample tiff

Its not possible to open a jpg compressed TIFF file in LO.

Sample file was taken from http://www.nightprogrammer.org/development/multipage-tiff-example-download-test-image-file/

Version: 5.1.0.0.alpha1+
Build ID: cbf3fac0a5a1be34b2e1a58da959debd24ebc017
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2015-09-17_07:03:22
Locale: en-US (en_US.UTF-8)
Comment 1 MM 2015-09-20 11:09:15 UTC
Confirmed with v4.4.5.2 under windows 7 x64.

While testing I found out that LO also doesn't import TIFF with deflate compression.
Comment 2 QA Administrators 2016-11-08 10:39:03 UTC Comment hidden (obsolete)
Comment 3 Yousuf Philips (jay) (retired) 2017-12-04 10:41:07 UTC
Still not possible to open it in Draw or insert it into Writer. It gives an 'unknown image format' dialog.

Version: 6.0.0.0.beta1
Build ID: 97471ab4eb4db4c487195658631696bb3238656c
CPU threads: 2; OS: Linux 4.4; UI render: default; VCL: gtk2; 
Locale: ar-SA (en_US.UTF-8); Calc: group threaded
Comment 4 QA Administrators 2019-06-17 02:46:35 UTC Comment hidden (obsolete)
Comment 5 Telek 2020-07-05 09:39:35 UTC Comment hidden (obsolete)
Comment 6 Telek 2020-07-05 09:52:54 UTC
I confirm this bug is still present in current LO version:
Version: 6.0.7.3
Build ID: 1:6.0.7-0ubuntu0.18.04.10

While testing I can confirm that LO generate an error when inserting TIFF image compressed with LZW, deflate, or packbit compression.

A message like "unknow image format" appears.

Import of uncompress (but huge) tiff works, but requires the user to convert its image library and have enough storage to do it.

This enhancement would be useful for LO interoperability especially for unconfirmed users who use this error to reject LO usage.
Comment 7 Buovjaga 2020-11-13 18:44:06 UTC
Still repro

Arch Linux 64-bit
Version: 7.1.0.0.alpha1+
Build ID: c54e1c22f30c23d00e2fe7521217569fcec59cc4
CPU threads: 8; OS: Linux 5.9; UI render: default; VCL: kf5
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 13 November 2020
Comment 8 Julien Nabet 2022-04-19 08:26:23 UTC
*** Bug 118182 has been marked as a duplicate of this bug. ***
Comment 9 Caolán McNamara 2022-05-21 18:17:41 UTC
I've committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/685eff8c9e6e6097b6f9e365fd6554e10adef063

libtiff: enable jpeg and zlib

It will be available in 7.4.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.