Created by: kalwalt
reference Custom png saving: https://github.com/nortikin/sverchok/issues/1586
to save a png in SNlite:
"""
in data s d=[[]] n=1
in width s d=64 n=2
in height s d=64 n=2
out some s
"""
from sverchok.utils import sv_export_png as png
# from sverchok/utils/sv_export_png.py
# save_png(filename, buf, mode, width, height, compression=5)
png.save_png('test', data, 'BW', width, height, 6)
to do:
-
allow RGBA, RGB; BW saving -
saving for not squared images -
allow matrix or flatten list of data -
filename feature (no needs to add .png
) -
numpy array as input data
Actually it save only RGBA data and squared images.
not ready to be merged...