imgutils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package imgutils ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(fileName string)

Convert ...

func Resize

func Resize(fileName string, width, height int)

Resize ...

func SaveImage

func SaveImage(urlString, fileName string)

SaveImage ...

func SearchImages

func SearchImages(searchURL string) (string, error)

SearchImages ...

Types

type Photo

type Photo struct {
	ID           int    `json:"id"`
	Source       Source `json:"src"`
	URL          string `json:"url"`
	Photographer string `json:"photographer"`
}

Photo ...

type Results

type Results struct {
	Photos []Photo `json:"photos"`
}

Results ...

type Source

type Source struct {
	ImageURL string `json:"large2x"`
}

Source ...

Jump to

Keyboard shortcuts

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