Bug 374503 - "Compress .kra files more" has no effect until Krita is restarted
Summary: "Compress .kra files more" has no effect until Krita is restarted
Status: RESOLVED WORKSFORME
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 3.1.1
Platform: Other Microsoft Windows
: NOR minor
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-03 16:50 UTC by Neviril
Modified: 2022-06-20 13:34 UTC (History)
2 users (show)

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


Attachments
Compress option results (11.21 KB, image/png)
2017-01-04 12:25 UTC, Neviril
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Neviril 2017-01-03 16:50:44 UTC
=Description of the bug=
The option:

Configure Krita > General > Miscellaneous > "Compress .kra files more"

...does not appear to have immediate effects on file size when saving an image.

This seems to be the case both with the active image and with a newly opened image.

Only after Krita is restarted the option appears to work as intended.

In my test case I verified that after restarting the program the option was able to decrease a 796 kB .kra file into a 743 kB file. Without restarting the program the file size would not decrease upon saving (also after making sure that the image was "dirty").

=Expected Result=
Either the option should work immediately or the user should be notified that Krita needs to be restarted for it to have any effect.
Comment 1 Halla Rempt 2017-01-04 07:57:52 UTC
I'm sorry, but it does work directly, I just verified it in the code & by saving a kra file twice.

-rw-r--r-- 1 boud users 472747 Jan  4 08:56 /home/boud/bla2.kra
-rw-r--r-- 1 boud users 474973 Jan  4 08:56 /home/boud/bla.kra
Comment 2 Neviril 2017-01-04 12:25:48 UTC
Created attachment 103191 [details]
Compress option results

I tried again today with a new image, saving the image as a new file every time the option was changed.

I was able to reproduce the minor issue in that only after the program is restarted the option starts having an effect. Odd.