# -*- coding: utf-8 -*-
from gi.repository.GdkPixbuf import Pixbuf

from os import makedirs


def main():
    for size in (16, 22, 24, 32, 48, 64, 128, 256, 512):
        icon = Pixbuf.new_from_file_at_scale("formiko.svg", size, size, True)
        makedirs("%dx%d" % (size, size))
        icon.savev("%dx%d/formiko.png" % (size, size), "png", [], [])


if __name__ == "__main__":
    main()

[((9, 15, 9, 77), 'gi.repository.GdkPixbuf.Pixbuf.new_from_file_at_scale', 'Pixbuf.new_from_file_at_scale', ({(9, 45, 9, 58): '"""formiko.svg"""', (9, 60, 9, 64): 'size', (9, 66, 9, 70): 'size', (9, 72, 9, 76): 'True'}, {}), "('formiko.svg', size, size, True)", False, 'from gi.repository.GdkPixbuf import Pixbuf\n'), ((10, 8, 10, 40), 'os.makedirs', 'makedirs', ({(10, 17, 10, 39): "('%dx%d' % (size, size))"}, {}), "('%dx%d' % (size, size))", False, 'from os import makedirs\n')]