//
// Created by Alban on 25/11/2024.
//
#ifndef PROJET_RESEAUX_TROPHIQUES_EQUIPE_3B_CONVERTION_MMD_PNG_H
#define PROJET_RESEAUX_TROPHIQUES_EQUIPE_3B_CONVERTION_MMD_PNG_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dirent.h>
#include <sys/stat.h>
#include "../structure.h"
#define IMG_DIR "./IMG"
void ensure_directory_exists(const char *dir_path); // test si le dossier MMD existe sinon le crée
int has_mmd_extension(const char *filename); // test si le fichier d'entre a une extension .mmd
void convert_to_png(const char *input_file, const char *output_file); //utilise une mmdc avec node.js pour convertir du mermaid en png
void convertion_mmd_png(nom_fichier_extension * nomFichierExtension); // Cree et place les image dans le bon dossier
void convertionPNGSimulation();
#endif //PROJET_RESEAUX_TROPHIQUES_EQUIPE_3B_CONVERTION_MMD_PNG_H