https://github.com/tgfrerer/le_png
read and write png files with Island
https://github.com/tgfrerer/le_png
Last synced: over 1 year ago
JSON representation
read and write png files with Island
- Host: GitHub
- URL: https://github.com/tgfrerer/le_png
- Owner: tgfrerer
- License: mit
- Created: 2024-03-14T16:45:29.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-04T10:14:55.000Z (over 1 year ago)
- Last Synced: 2025-01-20T23:48:34.604Z (over 1 year ago)
- Language: C++
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `le_png`
Island Module for reading and writing png files.
Compared to `le_pixels`, this module allows you to read more complex `.png` files and allows to convert `.png` files to target image formats on load.
It also allows you to **save** `.png` images - when feeding the encoder interface to an image swapchain for example.
If you want to encode pngs faster, you can switch on the CMAKE Option `LE_PNG_USE_FPNGE`. This will make the encoder use [fpnge](https://github.com/veluca93/fpnge) -- image size might be slightly larger, but encoding speed will be much better.
## Credits
* `le_png` uses [lodepng](https://github.com/lvandeve/lodepng) to do png encoding and decoding.
* `le_png` uses [fpnge](https://github.com/veluca93/fpnge), a very fast png encoder.
The license files for both dependencies can be found in their respective subfolders.
## Troubleshooting
Note: This module contains its dependency, lodepng as a git submodule. It should get automatically checked out when you configure an Island app that uses `le_png` as a dependency for the first time.
If this does not happen automatically you can update these git submodules manually:
From this current directory, issue the following commands:
```bash
git submodule init
git submodule update
```