[](https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/static-site-generator/RustyPhoenixPng/-/pipelines)
[](https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/static-site-generator/RustyPhoenixPng/-/releases)
[](https://cta-lapp.pages.in2p3.fr/PHOENIX_LIBS2/static-site-generator/RustyPhoenixPng/coverage/index.html)
[](https://cta-lapp.pages.in2p3.fr/PHOENIX_LIBS2/static-site-generator/RustyPhoenixPng/)
[](https://cta-lapp.pages.in2p3.fr/PHOENIX_LIBS2/PHOENIX2/)
[](https://doi.org/10.5281/zenodo.18897973)
# Code
https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/static-site-generator/RustyPhoenixPng
# Documentation
https://cta-lapp.pages.in2p3.fr/PHOENIX_LIBS2/static-site-generator/RustyPhoenixPng/index.html
# Requirements
- cargo
- rustc
# Quick start
This project eases manipulation of PNG image inside Phoenix ecosystem.
```rust
use std::path::PathBuf;
use rustyphoenixpng::PImage;
...
let filename = PathBuf::from("some_image.png");
//We can create an image
let image: PImage = PImage::new(100, 50);
//We can save the image
image.write(&filename).unwrap();
//We can load the image
let other: PImage = PImage::from(&filename);
```
# Installation for Users with [pixi](https://pixi.sh/latest/) (version `>=0.68`!)
```
git clone https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/static-site-generator/RustyPhoenixPng.git
cd RustyPhoenixPng
```