Paintop presets referencing brushes in files are not portable

Sven Langkamp sven.langkamp at gmail.com
Sat Sep 11 23:27:55 CEST 2010


On Sat, Sep 11, 2010 at 6:10 PM, LukasT.dev at gmail.com
<lukast.dev at gmail.com>wrote:

> > > Currently we address the gbr brush in preset by full path. We might use
> > > just a name.
> >
> > Well the problem is that two different brushes could have the same name.
>
> I have idea for it. Krita is looking for the brushes in some specified
> paths
> (user brushes, installed brushes, create package, maybe some other I
> haven't
> noticed yet). Let's just save the name of the brush like
>
> <brush filename="coolBrush.gbr" md5="58afe7e809d281fb421e728363bd80cc">
>
> Where md5 is the finger print of the gbr/abr/anyOtherFormat brush file
> content.
> Because it might happen that you name some brush with the same name in user
> brush dir and in installed brush dir. We would look for the brush where md5
> and name match.
>
> Sven filled the bug report, that's why I'm opening this topic again :)
> https://bugs.kde.org/show_bug.cgi?id=250675
>

I think the idea is good to use md5 sums. It might be a problem if there are
some big brushes, so we should check how much time is needed to generate
these sums. In case of ABR brushes can be severeral brushes in the same
file, so you can't take the md5 from the file there.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kimageshop/attachments/20100911/1317794e/attachment.htm 


More information about the kimageshop mailing list