|
|
|
@@ -1,8 +1,8 @@ |
|
|
|
#!/usr/bin/env python |
|
|
|
#!/usr/bin/env python3 |
|
|
|
# -*- coding: utf-8 -*- |
|
|
|
|
|
|
|
# DISTRHO Plugin Framework (DPF) |
|
|
|
# Copyright (C) 2012-2016 Filipe Coelho <falktx@falktx.com> |
|
|
|
# Copyright (C) 2012-2019 Filipe Coelho <falktx@falktx.com> |
|
|
|
# |
|
|
|
# Permission to use, copy, modify, and/or distribute this software for any purpose with |
|
|
|
# or without fee is hereby granted, provided that the above copyright notice and this |
|
|
|
@@ -52,7 +52,10 @@ def png2rgba(namespace, filenames): |
|
|
|
shortFilename = filename.rsplit(os.sep, 1)[-1].split(".", 1)[0] |
|
|
|
shortFilename = shortFilename.replace("-", "_") |
|
|
|
|
|
|
|
png = Image.open(filename) |
|
|
|
png = Image.open(filename) |
|
|
|
if png.getpalette(): |
|
|
|
png = png.convert() |
|
|
|
|
|
|
|
pngNumpy = numpy.array(png) |
|
|
|
pngData = pngNumpy.tolist() |
|
|
|
#pngData.reverse() |
|
|
|
|