https://github.com/peterhellberg/png2src
Convert .png into source code as described by the template used.
https://github.com/peterhellberg/png2src
cli
Last synced: 6 months ago
JSON representation
Convert .png into source code as described by the template used.
- Host: GitHub
- URL: https://github.com/peterhellberg/png2src
- Owner: peterhellberg
- License: other
- Created: 2024-09-15T14:01:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-15T14:03:19.000Z (over 1 year ago)
- Last Synced: 2025-07-11T19:39:18.165Z (7 months ago)
- Topics: cli
- Language: Go
- Homepage:
- Size: 2.93 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# png2src
Convert `.png` into source code as described by the template used.
By default this tool expects a `image.tpl` in the current working directory.
## Example template
When I want a Zig :zap: constant of type `Image` I might have a template such as this:
```zig
pub const {{.Name}} = Image{
.name = "{{.Name}}",
.width = {{.Width}},
.height = {{.Height}},
.data = &.{ {{.BytesString}} },
};
```