#ifndef __IMAGE_PPM__ #define __IMAGE_PPM__ #include #include #include #include "../libcproject/libcproject.h" #include "image.h" /** * @brief Convert image to PPM (Portable PixMap format) defined by the Netpbm project (Plain/Raw text ASCII format). * @see https://netpbm.sourceforge.net/doc/ppm.html */ byte_t* image_to_ppm_text(struct image* image, off_t* size); /** * @brief Convert image to PPM (Portable PixMap format) defined by the Netpbm project (binary format). * @see https://netpbm.sourceforge.net/doc/ppm.html */ byte_t* image_to_ppm_binary(struct image* image, off_t* size); #endif