Skip to content

baanish/ppm-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PPM to TIFF Converter

This script is designed to be used to convert the .ppm files generated by Peter Shirley's "Ray Tracing in a Weekend" project to .tiff files. It uses the opencv-python module to perform the conversion.

The "Ray Tracing in a Weekend" book can be found here: https://raytracing.github.io/books/RayTracingInOneWeekend.html

Requirements

  • Python 3
  • opencv-python (pip install opencv-python)

Usage

python convert.py input.ppm

Copy code

This will read the input .ppm file and save the converted .tiff file with the same name (e.g., input.tiff) to the same directory.

Notes

  • This script and the README.md file were entirely written by chatgpt using OpenAI's GPT-3 model.
  • Keywords: ppm converter, ray tracing, raytracing, peter shirley, ray tracing in a weekend

About

This script is designed to be used to convert the .ppm files generated by Peter Shirley's "Ray Tracing in a Weekend" project to .tiff files. It uses the opencv-python module to perform the conversion.

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages