Ещё немного про base64.
Собрал пример со встроенной в код картинкой. Это иконка для окна на PySide2. Файл кодирован в base64 и просто сохранён в переменной.
Для использования этих данных даже не пришлось сохранять их в новый файл. Иконка создаётся на лету с помощью метода QPixmap.loadFromData()
...
raw_data = base64.decodebytes(ico_encoded)
ico = QPixmap()
ico.loadFromData(raw_data, "PNG")
...
🌎 Полный пример смотрите в gists.
#libs#tricks#qt
On the Morrigan
The Morrigan is the Celtic archetype of Maiden, Mother & Crone. She the goddess of faith and death.
After battle, she would fly over the bodies of the fallen in form of a raven and sing mystic runic songs. Brave soldiers would obtain a protection amulet from her.
As with many female deities like Cybele, Kali or Hathor, we must seek the origin of the Morrigan in remote antiquity, when there was a specific incident which defined the archetype of the beautiful woman with a magical or terrible aspect.
#goddess#celtic
@EuropeanTribalism
Эксперимент с расширением и многоуровневым апскейлом в Стабле из оригинальной пикчи из Далле-3
Считаю, что прошёл неплохо, оригинальная пнг аж 18.5 мегабайта)
By Voodoont
#voodoont
#арт#art#ai#girl#space#goddess#celestial#sun#solarpunk#upscale