wasticker

package module
v0.0.0-...-444ff8a Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2022 License: MIT Imports: 17 Imported by: 0

README

go-wasticker

Getting Started

Required ffmpeg, libwebp

Install
> go get github.com/arugaz/go-wasticker
Usage
package main

import (
  "os"
  "github.com/arugaz/go-wasticker"
)

func main() {
  buf, _ := os.ReadFile("filename")

  stick, _ := wasticker.NewSticker(buf).ToByte()

  os.WriteFile("output", stick, 0644)

  url := "https://filename.ext"

  stick2, _ := wasticker.NewStickerUrl(url).ToByte()

  os.WriteFile("output", stick2, 0644)
}

To-Do

  • Binding Libvips

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Author     string
	Pack       string
	Categories []string
}

type WASticker

type WASticker interface {
	ToByte() ([]byte, error)
	ToFile(filename string) error
}

func NewSticker

func NewSticker(data []byte, opts ...Options) WASticker

Create New Sticker

func NewStickerUrl

func NewStickerUrl(url string, opts ...Options) WASticker

Create New Sticker

Jump to

Keyboard shortcuts

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