Skip to content

vngnc3/slit-encoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Slit Animation Encoder 🎬

Overview πŸ“–

This project contains a Python script for creating slit animations. Slit animations are a form of animation where multiple frames are encoded into a single image. A corresponding slit pattern is used to reveal individual frames from the encoded image when it is viewed through the pattern.

How to Use πŸ› οΈ

  1. Install dependencies: Run pip install -r requirements.txt.
  2. Setup: Place the image sequence you want to encode in a folder and specify its path as input_directory in the code.
  3. Run: Execute the Python script.
  4. Results: The encoded image, along with the slit pattern, will be saved in output_directory.

Parameters πŸ“

  • input_directory: The directory containing the image sequence to be encoded.
  • output_directory: The directory where the encoded image and slit pattern will be saved.
  • n_slits: The number of slits in the slit pattern.

Limitations ⚠️

  • Floating Point Error: Due to limitations with integer division, the slit pattern may sometimes include a row/column with transparent pixels.
  • Trailing Error: The last slit in the pattern may be slightly wider than the others, causing a visible error in the rendered canvas.

License πŸ“„

This project is licensed under the ISC License.

About

Encode image sequence into slit animation image.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages