Bug 93136 - [FILEOPEN] Cannot insert tiff file into draw, reports format being unknown
Summary: [FILEOPEN] Cannot insert tiff file into draw, reports format being unknown
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
4.3.7.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 93138 (view as bug list)
Depends on:
Blocks: Images-TIFF
  Show dependency treegraph
 
Reported: 2015-08-05 11:56 UTC by Matthias Ronge
Modified: 2019-06-29 01:40 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Ronge 2015-08-05 11:56:46 UTC
I cannot insert a tiff file into a draw document. Error message is that the image format is unknown. This is true both when dragging the file into the program window, or using the menu insert → image → from file. The open dialog appearing in the second variant explicitly lists tiff files in the file type select drop-down element, so tiff should be supported. The tiff file was generated using ImageMagick and opens fine in common programs such as gimp or irfan view, so the problem seems to be in draw.

It took me hours to find out that the reason was that the tiff file had an alpha channel. Removing the alpha channel from the image makes it possible to import it.

Solution should be to change the error message appearing to something meaningful, like: “Tiff images with an alpha channel are not supported.” − or make it possible to open them, perhaps by internally converting them to PNG. PNG files with alpha channels seem to work.
Comment 1 V Stuart Foote 2015-08-06 03:42:55 UTC
*** Bug 93138 has been marked as a duplicate of this bug. ***
Comment 2 V Stuart Foote 2015-08-06 04:05:31 UTC
> It took me hours to find out that the reason was that the tiff file had an
> alpha channel. Removing the alpha channel from the image makes it possible
> to import it.

Great thanks for reporting, and digging out what looks to be root cause. 
 
> Solution should be to change the error message appearing to something
> meaningful, like: “Tiff images with an alpha channel are not supported.” −
> or make it possible to open them, perhaps by internally converting them to
> PNG. PNG files with alpha channels seem to work.

Well, maybe. But it should be obvious that no Dev will concern themselves with an issue on EOL build. And the 4.3.7.2 release is EOL and nothing will be done with that code base.  

If you'd like to move this forward, and your suggested enhancement of a warning message is reasonable, please take a moment and load the current Fresh release 5.0.0, or even a current development master. And retest with your set of tiff's--Alpha channel or not.  

Reporting against one of these builds is more likely to elicit some interest from a developer. 

Work was done at the 4.2 release on Alpha channel support in PNG, I don't believe similar work has ever been done for support of Alpha channel on TIFF rasters. 

In fact handling of TIFF actually took a hit between 4.1 and 4.2 releases with adoption of GraphicPrimative2D (http://cgit.freedesktop.org/libreoffice/core/commit/?id=2e5167528f7566dd9b000e50fc1610b7bf99132a)
Comment 3 Matthias Ronge 2015-08-06 06:53:11 UTC
Thank you for notifying me of release version 5. During my tests yesterday I executed the update but it only increased my version to 4.3.7.2. I checked again just now and the update notification told me I am up to date. Obviously I was not. Never mind.

Tiff files with alpha channels do work in version 5.0.0.5. Thank you to all the developers and maintainers.