Dur Converter
- 5 Devlogs
- 7 Total hours
A simple converter that convert video or image into .dur file
A simple converter that convert video or image into .dur file
I just found out that the background coloring is not working due to a known issue in Python’s curses library, so the upper half unicode trick will not work for now ![]()
So I make --half-frame flag as a workaround of this issue, as it still compressing 2 pixels into 1 character but just the color of the upper pixel be chosen.
It is ready now 🎉

The fact that this is the first commit is kinda crazy 
Btw, I have been setting up the CLI for ease of access and the CICD workflow so it will publish the code to PYPI for me 
I have switched to NumPy and the performance is very WOW (sorry, I dont know how to describe it ;-;).
But the conversion just take about 15-30 mins (tks to Claude for explaining things for me), the whole remaining time is just me trying to figuring out why Ly (the display manager) keep throwing out of bound error, turn out it is a known bug from durdraw 
I have done the converting image into Ansi art.
The problem is a pixel on terminal usually equal to 2 pixel on the picture.
So this function basically treat a pixel on terminal as 2 pixel on the picture, then using the foreground and background coloring to workaround the 2-pixel problem.
In theory, it should work now, but the size of the object is just too big so I’m implement NumPy to solve this problem 