Giter Club home page Giter Club logo

bild's Introduction

bild


https://github.com/anthonynsimon/bild

package main

import (
  "github.com/anthonynsimon/bild/effect"
  "github.com/anthonynsimon/bild/imgio"
  "github.com/anthonynsimon/bild/transform"
)

func main() {
  img, err := imgio.Open("filename.jpg")
  if err != nil {
    panic(err)
  }
  
  inverted := effect.Invert(img)
  resized := transform.Resize(inverted, 800, 800, transform.Linear)
  rotated := transform.Rotate(resize, 45, nil)
  
  if err := imgio.Save("filename.png", rotated, imgio.PNGEncoder()); err != nil {
    panic(err)
  }
}

import "github.com/anthonysimon/bild/adjust"

result := adjust.Brigtness(img, 0.25)

result := adjust.Contrast(img, -0.5)

result := adjust.Gamma(img, 2.2)

result := adjust.Hue(img, -42)

result := adjust.Saturation(img, 0.5)

import "github.com/anthonynsimon/bild/blend"

result := blend.Multiply(bg, fg)

import "github.com/anthonysimon/bild/blur"

result := blur.Box(img, 3.0)

rsult := blur.Gaussian(img, 3.0)

import "github.com/anthonysimon/bild/channel"

result := channel.Extract(img, channel.Alpha)

import "github.com/anthonynsimon/bild/effect"

result := effect.Dilate(img, 3)

result := effect.EdgeDatection(img, 1.0)

result := effect.Emboss(img)
go get -u github.com/anthonysimon/bild/...

bild's People

Contributors

takagotch avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.