phly_img

package module
v0.0.0-...-dea25bf Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2018 License: BSD-3-Clause Imports: 12 Imported by: 2

README

phly_img

Image processing for phly.

This is an addon pack for the phly pipeline utility. See that repo for info on how to use the nodes.

Nodes

  • Load Image (phly/img/load).
    • input file. Supply file names to load.
    • output 0. The loaded images, one for each file name input.
  • Save Image (phly/img/save). Save images to a file.
    • cfg file. The name of the saved file. Allows variables ${src} (the source file path), ${srcdir} (the source directory), ${srcbase} (the source filename base, minus the extension) and ${srcext} (the source extension).
    • input 0. Image input.
    • output 0. Image output. All input items are provided, even if the save failed.
  • Scale Image (phly/img/scale). Resize images.
    • cfg width. The width of the final image. Allows variables ${w} (source width) and ${h} (source height) and arithmetic expressions (i.e. "(${w} * 0.5) + 10").
    • cfg height. The height of the final image. Allows variables ${w} (source width) and ${h} (source height) and arithmetic expressions (i.e. "(${w} * 0.5) + 10").
    • input 0. Image input.
    • output 0. The resized images.

Documentation

Index

Constants

View Source
const (
	MimeTypeImagePhly = "image/phly"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PhlyImage

type PhlyImage struct {
	Img        image.Image
	SourceFile string
}

PhlyImage combines a raw Go image with meta info.

Jump to

Keyboard shortcuts

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