Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/akatsuki105/hq2xgo

Enlarge image by 2x with hq2x algorithm
https://github.com/akatsuki105/hq2xgo

emulator game go golang hq2x hqx pixel-art scaling-algorithms

Last synced: 1 day ago
JSON representation

Enlarge image by 2x with hq2x algorithm

Awesome Lists containing this project

README

        

# hq2xgo

![Go](https://github.com/pokemium/hq2xgo/workflows/Go/badge.svg) [![GoDoc](https://godoc.org/github.com/pokemium/hq2xgo?status.svg)](https://godoc.org/github.com/pokemium/hq2xgo)

Enlarge image by 2x with hq2x algorithm

## Example(Before -> After)

    


    

## Usage

### command line

```sh
$ make build # require make and go
$ hq2x input.png output.png
```

### golang package

See [godoc](https://godoc.org/github.com/Akatsuki-py/hq2xgo) for details.

```sh
$ go get github.com/pokemium/hq2xgo
```

```go
import (
hq2x "github.com/pokemium/hq2xgo"
)

after, err := hq2x.HQ2x(before) // var before *image.RGBA
```

## Measure benchmark

```sh
$ cd cmd/
$ go test -bench .
```