Skip to content

A small python script for creating .fdf files based on some images. This was created for the fdf project from the 42 campus

Notifications You must be signed in to change notification settings

cosmic3d/img2fdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

img2fdf

What is img2fdf?

img2fdf is a Python program that converts an image into a .fdf map file, which you can run in the FilDeFer 42 campus project. Each pixel of the image is represented as a point in the map, with its corresponding color assigned in hexadecimal format. The resulting .fdf map can be used in various applications that require color mapping.

How to Use

  1. Install the necessary requirements (see the Requirements section).
  2. Run the img2fdf.py script, providing the path to the image as input.
  3. The program will generate the corresponding .fdf map file in the output folder.
python3 img2fdf.py

Requirements

  • Python 3.6 or above
  • PIL (Python Imaging Library) package

Run this command on the project folder to install all the requirements:

pip3 install -r requirements.txt

About

A small python script for creating .fdf files based on some images. This was created for the fdf project from the 42 campus

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages