Bug 502303 - File size growing on each save/export to an enormously large
Summary: File size growing on each save/export to an enormously large
Status: RESOLVED DUPLICATE of bug 500870
Alias: None
Product: krita
Classification: Applications
Component: File formats (show other bugs)
Version: 5.2.2
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-02 02:33 UTC by antonmx
Modified: 2025-04-02 02:42 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description antonmx 2025-04-02 02:33:02 UTC
SUMMARY

Exporting/saving a file to TIFF makes the file size grow larger and larger on each edit/save operation. Resulting file size can be more than 10 times larger than required to store each pixel uncompressed. F.e. here comes result of "identify" such a file:

01_dir_org_mask.tif TIFF 1877x954 1877x954+0+0 8-bit Grayscale Gray 18.7867MiB 0.000u 0:00.000

While simple calculation  1877 * 954 * 1(byte) = 1790658, that is approximately 1.71MiB of uncompressed data, 10 times as little as existing size!

STEPS TO REPRODUCE
1. Open an uncompressed TIFF file
2. Paint a stroke or do some other editing
3. Save/export file.

OBSERVED RESULT
File size grows by 1MiB on each such iteration

EXPECTED RESULT
File size to keep the same size.

SOFTWARE/OS VERSIONS
Operating System: Ubuntu 12
KDE Plasma Version: 5.27.12
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13


ADDITIONAL INFORMATION
Comment 1 Nicholas LaPointe 2025-04-02 02:42:56 UTC
*** This bug has been marked as a duplicate of bug 500870 ***