Python script to convert old resource archives into new Bundle format

Ilya Portnov portnov at iportnov.ru
Mon Jun 1 11:30:13 UTC 2015


Hello.
It is possible, though script needs to be adapted to input it's 
parameters (bundle metainformation and so on) from some sort of config 
file. Currently it asks all that information from user via stdin.

WBR, Ilya Portnov.


Boudewijn Rempt писал 01.06.2015 14:48:
> Hi Ilya!
>
> Cool! I'm wondering how hard it would be to use this to create
> bundles out of the resources we package as part of the build
> process... Loading a bundle is much faster than loading individual
> resources.

>
> On Sun, 31 May 2015, Ilya Portnov wrote:
>
>> Hello all.
>>
>> There are some number of brushes for Krita available in 
>> old-fashioned format, as a zip file with "brushes" and 
>> "paintoppresets" directories. Managing these brushes manually when 
>> having "brand new" resource manager seemed to be hmm.. unelegant :) So 
>> I wrote a simple script that converts that archives into new bundle 
>> format. Github link:
>> https://github.com/portnov/krita-bundler
>>
>> USAGE
>>
>> * Create a directory, say, ~/bundle.
>> * Put 'brushes' and 'paintoppresets' directories from old resource 
>> archive to that new directory.
>> * Put also file called preview.png into the same directory.
>> * Chdir to ~/bundle.
>> * Run create-krita-bundle.py from console/terminal emulator.
>> * It will ask you several questions about the bundle being created.
>> * As a result, it will produce *.bundle file.
>> * Import that file to Krita to test that it works as expected.
>>
>> There obviously can be bugs, some of them because bundle format is 
>> not well documented and i had to reverse-engineer existing bundles :) 
>> Please fill free to report bugs here or via github issue tracker. 
>> Patches are very appreciated :)
>> The script, i think, should be useful first of all for maintainers 
>> of existing brushsets; but it can be also useful for end users.
>>
>> With best regards,
>> Ilya Portnov.
>> _______________________________________________
>> Krita mailing list
>> kimageshop at kde.org
>> https://mail.kde.org/mailman/listinfo/kimageshop
>>
> _______________________________________________
> Krita mailing list
> kimageshop at kde.org
> https://mail.kde.org/mailman/listinfo/kimageshop



More information about the kimageshop mailing list