sd_save_image: Save SD image to PNG file

View source: R/image_utils.R

sd_save_imageR Documentation

Save SD image to PNG file

Description

Save SD image to PNG file

Usage

sd_save_image(image, path)

Arguments

image

SD image (list with width, height, channel, data) as returned by sd_txt2img() or sd_img2img(). Can also be a 3D numeric array [height, width, channels] with values in [0, 1].

path

Output file path (should end in .png)

Value

The file path (invisibly).


sd2R documentation built on March 30, 2026, 5:08 p.m.