Patch: don't save tiles that are equal to the default tile
Dmitry Kazakov
dimula73 at gmail.com
Tue Mar 16 18:28:34 CET 2010
>
> >
> > Why do you think data manager should know anything?
> I think you missed my point :)
>
> Lets say I open an image, I then select an area (non necessarily
> rectangular),
> then I go to the edit menu and choose cut or clear, it will replace my
> selection by transparent pixels in function of selectedness on my image.
> And
> neither KisDataManager::fill/KisDataManager::clear apply in this case,
> since
> they take a rectangle as argument.
>
Ok. Then we need this KisTileHashTable::purge() method. But i still don't
think we should do this during save. E.g. in my emacs workflow i save my
work every ~40sec. If i did the same with Krita, then this full scanning of
tiles would make some troubles.
Btw, AutoCAD has the purge() method too. It removes unused references and
blocks. And it is revealed to the user into File->Drawing
Utilities->Purge... Maybe it could work for Krita too...
Actually, we could do this on opening the image. It happens not so often and
do not disturb the user much. But it would mean that the image becomes
altered (internally) right after opening.
--
Dmitry Kazakov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kimageshop/attachments/20100316/f64add81/attachment.htm
More information about the kimageshop
mailing list