Bug 366477

Summary: Gwenview save TIFF-images without compression after rotation
Product: [Applications] gwenview Reporter: Vaso <fuckel>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: myriam, nate
Priority: NOR    
Version: Other (add details in bug description)   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=357522
Latest Commit: Version Fixed In:

Description Vaso 2016-08-06 18:02:40 UTC
When you look through you images, you sometimes want to change rotation (e.g. scanned landscape document). This process is very simple with Gwenview: make your changes and press "Save" button. But there is a big problem with images in TIF format.
Black and white (binary) image in TIFF-format with LZW compression has a very small size. This is preferred format for scanning documents, because a disk space is saving tremendously. But Gwenview ignores the compression type of original TIFF-image and save this file type without any compression at all.
Here is mediainfo output: (I've not found <monospace> tag, sorry)
$ mediainfo ./*
General
Complete name                            : ./OriginalWithLZW.tif
Format                                   : TIFF
File size                                : 52.5 KiB

Image
Format                                   : LZW
Width                                    : 3 508 pixels
Height                                   : 4 960 pixels
Color space                              : Y
Bit depth                                : 1 bit
Compression mode                         : Lossless

General
Complete name                            : ./SavedByGwenview.tif
Format                                   : TIFF
File size                                : 2.08 MiB

Image
Format                                   : Raw
Width                                    : 3 508 pixels
Height                                   : 4 960 pixels
Color space                              : Y
Bit depth                                : 1 bit
Compression mode                         : Lossless

Reproducible: Always

Steps to Reproduce:
1. Open a TIFF-file.
2. Save this file as TIFF-image with alternative name (or change something (e.g. rotation) and save the changes).

Actual Results:  
Check the size of new image -- it's huge!!!

Expected Results:  
Ideally files that are being edited should be saved with preserved compression type (and even compression ratio (e.g. for JPEG format)).
Comment 1 Vaso 2017-04-20 07:42:57 UTC
Kubuntu 17.04
gwenview 4:16.12.3-0ubuntu1 amd64
Still reproduce.
Comment 2 Nate Graham 2017-11-09 19:52:50 UTC

*** This bug has been marked as a duplicate of bug 357522 ***