https://github.com/exu/goimgdata
Img to to data URI in Go lang
https://github.com/exu/goimgdata
Last synced: over 1 year ago
JSON representation
Img to to data URI in Go lang
- Host: GitHub
- URL: https://github.com/exu/goimgdata
- Owner: exu
- Created: 2013-06-12T13:29:21.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-06-12T14:16:40.000Z (about 13 years ago)
- Last Synced: 2025-01-31T21:07:39.639Z (over 1 year ago)
- Language: Go
- Size: 137 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# img content to data URI in go lang
## Usage:
Save example code to some file e.g. `convert.go`
package main
import (
"github.com/exu/goimgdata"
"os"
"fmt"
)
func main() {
filename := os.Args[1]
fmt.Println(goimgdata.Convert(filename))
}
next run `go build convert.go` command in your shell, next run
`./convert PATH_TO_YOUR_JPG_GIF_PNG_IMAGE_FILE`
You'll need golang (in ubuntu `sudo apt-get install golang`)