Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/akatsuki105/hq2xgo
- Owner: akatsuki105
- Created: 2020-03-15T22:56:00.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-18T18:22:42.000Z (almost 2 years ago)
- Last Synced: 2025-01-19T20:06:04.262Z (6 days ago)
- Topics: emulator, game, go, golang, hq2x, hqx, pixel-art, scaling-algorithms
- Language: Go
- Homepage:
- Size: 83 KB
- Stars: 14
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 .
```