vips: github.com/DAddYE/vips Index | Files | Directories

package vips

import "github.com/DAddYE/vips"

Index

Package Files

vips.go

Constants

const DEBUG = false

Variables

var (
    MARKER_JPEG = []byte{0xff, 0xd8}
    MARKER_PNG  = []byte{0x89, 0x50}
    MARKER_GIF  = []byte{0x47, 0x49, 0x46}
    MARKER_WEBP = []byte{0x57, 0x45, 0x42, 0x50}
)

func Debug Uses

func Debug()

func Initialize Uses

func Initialize()

func Resize Uses

func Resize(buf []byte, o Options) ([]byte, error)

func Shutdown Uses

func Shutdown()

type Extend Uses

type Extend int
const (
    EXTEND_BLACK Extend = C.VIPS_EXTEND_BLACK
    EXTEND_WHITE Extend = C.VIPS_EXTEND_WHITE
)

type Gravity Uses

type Gravity int
const (
    CENTRE Gravity = 1 << iota
    NORTH
    EAST
    SOUTH
    WEST
)

type ImageType Uses

type ImageType int
const (
    UNKNOWN ImageType = iota
    JPEG
    PNG
    GIF
    WEBP
)

type Interpolator Uses

type Interpolator int
const (
    BICUBIC Interpolator = iota
    BILINEAR
    NOHALO
)

func (Interpolator) String Uses

func (i Interpolator) String() string

type Options Uses

type Options struct {
    Height       int
    Width        int
    Crop         bool
    Enlarge      bool
    Extend       Extend
    Embed        bool
    Interpolator Interpolator
    Gravity      Gravity
    Quality      int
    Format       ImageType
}

Directories

PathSynopsis
vips-cmd

Package vips imports 8 packages (graph) and is imported by 1 packages. Updated 2017-11-16. Refresh now. Tools for package owners.