https://bugs.kde.org/show_bug.cgi?id=500870

Dmitry Kazakov <dimul...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
      Latest Commit|                            |https://invent.kde.org/grap
                   |                            |hics/krita/-/commit/20ca858
                   |                            |c2d9130b5a46fdf6af1a3290630
                   |                            |bb4497
             Status|CONFIRMED                   |RESOLVED

--- Comment #3 from Dmitry Kazakov <dimul...@gmail.com> ---
Git commit 20ca858c2d9130b5a46fdf6af1a3290630bb4497 by Dmitry Kazakov, on
behalf of Igor Danilets.
Committed on 21/05/2025 at 15:27.
Pushed by dkazakov into branch 'master'.

Fix TIFF file size bloating after each overwrite

Unlike the stdio library TIFF image files may not be opened for both
reading and writing; there is no support for altering the contents of a
TIFF file.
(https://libtiff.gitlab.io/libtiff/libtiff.html#basic-file-handling)
However, function TIFFFdOpen do not truncate the TIFF file before
the owerrite. When libtiff writes new data to existing file, the old
data is not deleted.

Solution:
Truncate the TIFF file before calling the function TIFFFdOpen.

M  +1    -1    plugins/impex/tiff/kis_tiff_export.cc

https://invent.kde.org/graphics/krita/-/commit/20ca858c2d9130b5a46fdf6af1a3290630bb4497

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to