Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/krzko/image-byte-slice-gen
🖼 A Go-based command-line tool to convert images into Go byte slice files
https://github.com/krzko/image-byte-slice-gen
byte-slice golang image image-processing
Last synced: 17 days ago
JSON representation
🖼 A Go-based command-line tool to convert images into Go byte slice files
- Host: GitHub
- URL: https://github.com/krzko/image-byte-slice-gen
- Owner: krzko
- Created: 2023-11-05T21:46:05.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-06T00:51:43.000Z (about 1 year ago)
- Last Synced: 2024-12-14T00:45:23.639Z (22 days ago)
- Topics: byte-slice, golang, image, image-processing
- Language: Go
- Homepage:
- Size: 104 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# image-byte-slice-gen
A Go-based command-line tool to convert images into [Go](https://go.dev/) byte slice files.
## Usage
Run the utility with the `-f` flag followed by the path to the image file you want to convert:
```sh
image-byte-slice-gen -f path/to/your/image.png
```This will generate a Go source file with the same name as the image file, containing a byte slice with the image data.
```go
// image.go
package iconvar image = []byte{...}
```