Bug 120664 - Gwenview shouldn't open multi-page tiff files
Summary: Gwenview shouldn't open multi-page tiff files
Status: CONFIRMED
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-23 16:40 UTC by Ismail Donmez
Modified: 2023-05-25 12:41 UTC (History)
11 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Multi page tiff file (244.83 KB, image/tiff)
2006-01-23 16:41 UTC, Ismail Donmez
Details
Multipage tiff support (3.81 KB, application/x-gzip)
2008-09-24 12:00 UTC, András Manţia
Details
missing files from the previous patch (1.97 KB, patch)
2008-10-15 11:20 UTC, András Manţia
Details
Updated patch (fixes some printing issues and a crash when quickly switching between TIFF files). (37.67 KB, patch)
2009-07-16 19:28 UTC, András Manţia
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ismail Donmez 2006-01-23 16:40:35 UTC
Version:           1.3.0 (using KDE 3.5.1, compiled sources)
Compiler:          gcc version 3.4.5
OS:                Linux (i686) release 2.6.15.1-18

Attached file is a 4 page tiff file but Gwenview shows only first page. KFax shows the file fine.
Comment 1 Ismail Donmez 2006-01-23 16:41:44 UTC
Created attachment 14359 [details]
Multi page tiff file
Comment 2 Oliver Grimm 2007-12-28 08:56:20 UTC
still a bug in KDE 3.5.8
Comment 3 MaxiPunkt 2008-01-12 16:14:16 UTC
> still a bug in KDE 3.5.8
Why should this be a bug of KDE?

I would say this is still a bug in GwenView 1.4.2!
Comment 4 András Manţia 2008-09-09 12:01:05 UTC
I will work on it soon.
Comment 5 Aurelien Gateau 2008-09-10 17:33:37 UTC
I do not think it is a good idea to add support for multi-page tiff files to Gwenview. Okular already handles these kind of files and is more adapted to multi-page documents.
Comment 6 John 2008-09-22 19:58:58 UTC
(In reply to comment #5)
> I do not think it is a good idea to add support for multi-page tiff files to
> Gwenview. Okular already handles these kind of files and is more adapted to
> multi-page documents.
> 

If gwenview isn't to display additional pages, it should at least notify user that additional pages are present but can not be viewed.  Gwenview is the default image viewer for tiff files in many cases, and that second page might be important.
Comment 7 András Manţia 2008-09-22 20:15:37 UTC
I implemented the feature for the KDE 3.5 version as it was requested to do so by a customer of our company. I will attach the diff for review later, as it has problems reading LZW compressed files (libkfaximage limitation, trying to fix that). I don't expect to be accepted, nor to be ported to KDE4 as it is, because libkfaximage is also unported.
Comment 8 András Manţia 2008-09-24 12:00:13 UTC
Created attachment 27544 [details]
Multipage tiff support
Comment 9 András Manţia 2008-09-24 12:04:11 UTC
I attached a patch that implement multipage tiff support for gwenview for those that need it. Its only dependency is libtiff, that most users should already have installed. Loading/viewing/printing should work, saving saves the current page only. Navigation is done by Ctrl-PageUp/Ctrl-PageDown, the toolbar icons or the menu items inside View. 
Aurelien, in case you think it is acceptable to have this in the kde3 version (or even adapted to KDE4) I can do it, otherwise it has to live as an external patch, applied by those who need it.
Tested with Gwenview from branches/extragear/kde3/graphics/gwenview and KDE3 from the latest KDE3 branch.
Comment 10 Aurelien Gateau 2008-10-15 11:12:25 UTC
Thanks for attaching the patch Andreas, but since I do not work on Gwenview 1.4 anymore, except for serious bug fixes, I do not think it makes sense to apply it.

I am not sure what to do regarding KDE4. For this reason, I asked for other people opinions on kde-core-devel:

http://lists.kde.org/?l=kde-core-devel&m=122406118222411&w=2
Comment 11 András Manţia 2008-10-15 11:20:22 UTC
Created attachment 27895 [details]
missing files from the previous patch
Comment 12 András Manţia 2008-10-15 11:21:54 UTC
No problem, I just put it here (now also the files needed to really compile it) in case somebody wants this feature under KDE 3.x. :)
Comment 13 András Manţia 2009-07-16 19:28:52 UTC
Created attachment 35391 [details]
Updated patch (fixes some printing issues and a crash when quickly switching between TIFF files).
Comment 14 András Manţia 2009-07-16 19:30:32 UTC
I uploaded a modified version with some fixes. Aurelien, would you mind if I'd commit this to the kde3 branch of gwenview?
Comment 15 Aurelien Gateau 2009-08-12 12:19:44 UTC
(In reply to comment #14)
> I uploaded a modified version with some fixes. Aurelien, would you mind if I'd
> commit this to the kde3 branch of gwenview?

No problem, please go ahead. Just don't expect a release :)
Comment 16 Mark S. 2011-12-28 01:03:27 UTC
Gwenview does not support multipage tiffs in KDE 4.7.4 and Gwenview 2.7.4. Is this considered a bug, or could it be moved to wishlist?
Comment 17 Myriam Schweingruber 2012-01-02 18:28:37 UTC
Moved to wishlist
Comment 18 Dainius Masiliūnas 2013-09-12 20:12:07 UTC
Still an issue in Gwenview 4.10.4. But I agree with comment #5 and comment #6 in that it would be nicer if Gwenview could launch Okular in order to to view multipage TIFFs instead.
Comment 19 Nate Graham 2017-11-08 22:41:03 UTC
Yeah, Gwenview *shouldn't* support multi-page TIFFs; they should open in Okular instead.
Comment 20 Kieran Ramos 2018-05-04 03:45:23 UTC
I would like to add to this bug report because when Gwenview tries to load multi-page tiffs that are very large (say 2 GB) it causes Gwenview to freeze while waiting on disk I/O. Despite that Gwenview loads the entire 2 GB file and of course consumes 2 GB of memory at least momentarily, it only displays the first image in the multi-page file. So I believe if Gwenview were to continue supporting multi-page tiffs it should only load one page at a time into memory and it should have a separate slider to view other pages.

I think it would be beneficial for Gwenview to have an option in the settings like "Show videos" to disable showing of multi-page tiffs or even all tiffs.
Comment 21 John S. 2019-12-07 18:05:43 UTC
I strongly disagree with Gwenview not supporting multi-page TIFF files. These are image files and Gwenview is an image viewer; it should support viewing the entire file. Further, Okular is a document viewer, so it makes no sense to have an image file format rely on it. I have several sets of mixed TIFF and multi-TIFF pictures, and I view them by opening one in Gwenview and using the forward and back arrows to navigate through the pictures in a directory. Having to alternate between Gwenview and Okular would be (and currently is) incredibly unwieldy.

Ideally I'd like to see Gwenview implement something like Windows Explorer does, where a forward and back arrow appear below the picture but above the bottom toolbar when a multi-page TIFF file is opened to enable browsing through pages.