sd_load_image: Load image from file as SD image

View source: R/image_utils.R

sd_load_imageR Documentation

Load image from file as SD image

Description

Reads a PNG file and converts it to the SD image format (list with width, height, channel, data) suitable for img2img.

Usage

sd_load_image(path, channels = 3L)

Arguments

path

Path to image file (PNG)

channels

Number of output channels (3 for RGB, default)

Value

SD image list (width, height, channel, data as raw vector)


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