utils

package
v0.0.0-...-583034f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package utils provides utility functions for the ModelsLab SDK

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64ToImage

func Base64ToImage(base64Str, outputPath string) error

Base64ToImage converts a base64 string to an image and saves it to a file

func ImageToBase64

func ImageToBase64(imagePath string) (string, error)

ImageToBase64 converts an image file to base64 string

func ReadImageFromFile

func ReadImageFromFile(imagePath string) (image.Image, error)

ReadImageFromFile reads an image from a file

func SaveImageToFile

func SaveImageToFile(img image.Image, outputPath string) error

SaveImageToFile saves an image.Image to a file

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL